# Functions
CycleNodes makes an iterator which cycles through the given nodes indefinitely.
DistCmp compares the distances a->target and b->target.
Filter wraps an iterator such that Next only returns nodes for which the 'check' function returns true.
HexID converts a hex string to an ID.
IterNodes makes an iterator which runs through the given nodes once.
LogDist returns the logarithmic distance between a and b, log2(a ^ b).
MustParse parses a node record or enode:// URL.
MustParseV4 parses a node URL.
New wraps a node record.
NewFairMix creates a mixer.
NewLocalNode creates a local node.
NewV4 creates a node from discovery v4 node information.
OpenDB opens a node database for storing and retrieving infos about known peers in the network.
Parse decodes and verifies a base64-encoded node record.
ParseV4 parses a node URL.
PubkeyToIDV4 derives the v4 node address from the given public key.
ReadNodes reads at most n nodes from the given iterator.
SignV4 signs a record using the v4 scheme.
# Variables
ValidSchemes is a List of known secure identity schemes.
ValidSchemesForTesting is a List of identity schemes for testing.
# Structs
DB is the node database, storing previously seen nodes and any collected metadata about them for QoS purposes.
FairMix aggregates multiple node iterators.
LocalNode produces the signed node record of a local node, i.e.
Node represents a host on the network.
NullID is the "null" ENR identity scheme.
V4ID is the "v4" identity scheme.
# Interfaces
Iterator represents a sequence of nodes.