Peer implementation for a resilient decentralised network infrastructure.
This is the “engine room” of a hybrid p2p network, where the p2p nodes are built on top of this library. The features this library gives us is:
- Sybil resistant p2p nodes
- Sharded network with up to approx 200 p2p nodes per shard
- All data encrypted at network level with TLS 1.3
- Network level
quiccompatibility, satisfying industry standards and further obfuscating the p2p network data.
- Upgrade capable nodes.
- All network messages signed via ED25519 and/or BLS
- Section consensus via an ABFT algorithm (PARSEC)
Stream of routing node events
A section prefix, i.e. a sequence of bits specifying the part of the network’s name space consisting of all names that start with this sequence.
Interface for sending and receiving messages to and from other nodes, in the role of a full routing node.
Stream of outgoing messages
A 256-bit number, viewed as a point in XOR space.
An Event raised by a
A flag in EldersChanged event, indicating whether the node got promoted, demoted or did not change.
Number of elders per section.
Defines the higher bound of this range.
During the first section, nodes can start at a range of age to avoid too many nodes having the same time get relocated at the same time. Defines the lower bound of this range.
The minimum age a node becomes an adult node.
The minimum age a node can have. The Infants will start at age 4. This is to prevent frequent relocations during the beginning of a node’s lifetime.
Recommended section size. sn_routing will keep adding nodes until the section reaches this size. More nodes might be added if requested by the upper layers. This number also detemines when split happens - if both post-split sections would have at least this number of nodes.
Constant byte length of
The type returned by the sn_routing message handling methods.