package
2.14.0
Repository: https://github.com/vitelabs/go-vite.git
Documentation: pkg.go.dev

# Functions

Bytes2NodeID turn a slice to NodeID.
Distance is bit-count minus the common bits, from left to right continuously, between a and b.
Hex2NodeID parse a hex coded string to NodeID.
No description provided by the author
ParseEndPoint parse a string to EndPoint host MUST format one of the following styles: 1.
ParseNode parse a string to Node, return error if missing Hostname/IP.
RandFromDistance will generate a random NodeID which satisfy `Distance(id, rid) == d`.
RandomNodeID return a random NodeID, easy to test.

# Constants

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

# Variables

ZERO is the zero-value of NodeID type.

# Structs

EndPoint is the net address format `IP:Port` or `domain:Port`.
Node mean a node in vite P2P network.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
NodeID use to mark node, and build a structural network.
NodeMode mean the level of a node in the current hierarchy Core nodes works on the highest level, usually are producers Relay nodes usually are the standby producers, and partial full nodes (like static nodes) Regular nodes usually are the full nodes Edge nodes usually are the light nodes.