package
0.0.0-20230701163456-27d7aa5e0cf7
Repository: https://github.com/mikelsr/go-libp2p-kbucket.git
Documentation: pkg.go.dev

# Functions

SortByDistance takes a KeySpace, a center Key, and a list of Keys toSort.
ZeroPrefixLen returns the number of consecutive zeroes in a byte slice.

# Variables

XORKeySpace is a KeySpace which: - normalizes identifiers using a cryptographic hash (sha256) - measures distance by XORing keys together.

# Structs

Key represents an identifier in a KeySpace.

# Interfaces

KeySpace is an object used to do math on identifiers.