Versions in this module Expand all Collapse all v0 v0.1.0 Dec 19, 2023 Changes in this version + var XORKeySpace = &xorKeySpace + func XOR(a, b []byte) []byte + func ZeroPrefixLen(id []byte) int + type Key struct + Bytes []byte + Original []byte + Space KeySpace + func SortByDistance(sp KeySpace, center Key, toSort []Key) []Key + func (k1 Key) Distance(k2 Key) *big.Int + func (k1 Key) Equal(k2 Key) bool + func (k1 Key) Less(k2 Key) bool + type KeySpace interface + Distance func(Key, Key) *big.Int + Equal func(Key, Key) bool + Key func([]byte) Key + Less func(Key, Key) bool