Re-exports

pub use self::node_state::NodeState;
pub use self::section_authority_provider::SapCandidate;
pub use self::section_authority_provider::SectionAuthUtils;
pub use self::section_authority_provider::SectionAuthorityProvider;
pub use self::section_keys::SectionKeyShare;
pub use self::section_keys::SectionKeysProvider;

Modules

Structs

Container for storing information about the network, including our own section.
Information and state of our node
Container for storing information about other sections in the network.
A Merkle DAG of BLS keys where every key is signed by its parent key, except the genesis one.

Enums

Internal error.

Constants

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.

Functions

Get the expected elder count for our network. Defaults to DEFAULT_ELDER_COUNT, but can be overridden by the env var SN_ELDER_COUNT.
Recommended section size. The section will keep adding nodes when requested by the upper layers, until it can split. A split happens if both post-split sections would have at least this number of nodes.
SuperMajority of a given group (i.e. > 2/3)

Type Definitions

The type returned by the sn_routing message handling methods.