package
0.0.0-20240823125516-aed94cdc2c2f
Repository: https://github.com/probe-lab/go-kademlia.git
Documentation: pkg.go.dev
# Packages
Package trie provides an implementation of a XOR Trie.
# Functions
BitString returns a string containing the binary representation of a key.
Equal reports whether two keys have equal numeric values.
HexString returns a string containing the hexadecimal representation of a key.
IsSorted reports whether a list of keys is sorted in ascending numerical order.
NewKey256 returns a 256-bit Kademlia key whose bits are set from the supplied bytes.
ZeroKey256 returns a 256-bit Kademlia key with all bits zeroed.
# Variables
ErrInvalidDataLength is the error returned when attempting to construct a key from binary data of the wrong length.