package
2.0.8+incompatible
Repository: https://github.com/etherzero-org/go-etherzero.git
Documentation: pkg.go.dev

# Functions

DistCmp compares the distances a->target and b->target.
HexID converts a hex string to an ID.
LogDist returns the logarithmic distance between a and b, log2(a ^ b).
MustParseV4 parses a node URL.
New wraps a node record.
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.
ParseV4 parses a node URL.
PubkeyToIDV4 derives the v4 node address from the given public key.
RandomID returns a random ID b such that logdist(a, b) == n.
No description provided by the author
SignV4 signs a record using the v4 scheme.

# Variables

List of known secure identity schemes.
No description provided by the author

# Structs

DB is the node database, storing previously seen nodes and any collected metadata about them for QoS purposes.
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.

# Type aliases

ID is a unique identifier for each node.
Secp256k1 is the "secp256k1" key, which holds a public key.