sc_network

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

Re-exports§

Modules§

Macros§

Structs§

Enums§

  • Network backend type.
  • 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.

Traits§

  • Minimum Requirements for a Hash within Networking

Functions§

  • Create new (protocol, notification) handle pair.
  • Splits a Multiaddress into a Multiaddress and PeerId.
  • Parses a string address and splits it into Multiaddress and PeerId, if valid.

Type Aliases§