dhtutil

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSorted

func IsSorted(identity id.Signatory, addrs []id.Signatory) bool

IsSorted checks if the given list of addresses are sorted in order of their XOR didstance from our own address.

func RandomContent

func RandomContent() []byte

func SortAddrs

func SortAddrs(identity id.Signatory, addrs []id.Signatory)

SortAddrs in order of their XOR distance from our own address.

func SortSignatories

func SortSignatories(identity id.Signatory, signatories []id.Signatory)

SortSignatories in order of their XOR distance from our own address.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL