package
0.0.1
Repository: https://github.com/libonomy/libonomy-p2p.git
Documentation: pkg.go.dev

# Functions

GenerateRandomNodeData generates a remote random node data for testing.
GenerateRandomNodesData generates remote nodes data for testing.
GenerateTestNode generates a local test node without persisting data to local store and with default config value.
GenerateTestNodeWithConfig creates a local test node without persisting data to local store.
GetUnboundedPort returns a port that is for sure unbounded or an error.
LoadIdentity loads a specific nodeid from the disk at the given path.
NewNode creates a new Info from public key, ip and ports.
NewNodeIdentity creates a new local node without attempting to restore node from local store.
ParseNode parses a node designator.
ReadFirstNodeData reads node data from the data folder.

# Constants

DiscoveryPortParam is the param used to define the port used for discovery.
Scheme sets the URI scheme for the node string format.

# Variables

ErrFailedToCreate is returned when we fail to create a node.

# Structs

Info represents a p2p node that we know about.
LocalNode is a public-private key pair used locally.

# Type aliases

ID is the public key represented as a fixed size 32 byte array.