package
0.1.0
Repository: https://github.com/bpfs/dep2p.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Closer returns true if a is closer to key than b is.
No description provided by the author
ConvertKey creates a DHT ID by hashing a local key (String).
ConvertPeerID creates a DHT ID by hashing a Peer ID (Multihash).
NewRoutingTable creates a new routing table with a given bucketsize, local ID, and latency tolerance.
SortClosestPeers Sort the given peers by their ascending distance from the target.
XOR takes two byte slices, XORs them together, returns the resulting slice.

# Variables

ErrLookupFailure is returned if a routing table query returns no results.
No description provided by the author
No description provided by the author

# Structs

PeerInfo holds all related information for a peer in the K-Bucket.
RoutingTable defines the routing table.

# Type aliases

ID for DeP2PDHT is in the XORKeySpace The type dht.ID signifies that its contents have been hashed from either a peer.ID or a util.Key.