Module sc_network::config

source ·
Expand description

Configuration of the networking layer.

The Params struct is the struct that must be passed in order to initialize the networking. See the documentation of Params.






  • Identity keypair of a node.
  • The configuration of a node’s secret key, describing the type of key and how it is obtained. A node’s identity keypair is the result of the evaluation of the node key configuration.
  • The policy for connections to non-reserved peers.
  • Error that can be generated by parse_str_addr.
  • Role of the local node.
  • The configuration options for obtaining a secret key K.
  • Sync operation mode.
  • Configuration for the transport layer.


  • Minimum Requirements for a Hash within Networking
  • Warp sync backend. Handles retrieving and verifying warp sync proofs.


  • Splits a Multiaddress into a Multiaddress and PeerId.
  • Parses a string address and splits it into Multiaddress and PeerId, if valid.

Type Definitions