# 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.
# 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.