Module libp2p_networking::network
source · Expand description
Network logic
Modules§
- networking behaviours wrapping libp2p’s behaviours
- Forked
cbor
codec with altered request/response sizes - def 🔒defines the swarm and network definition (internal)
- node 🔒functionality of a libp2p network node
- Alternative Libp2p transport implementations
Structs§
- Configuration for Libp2p’s Gossipsub
- Overarching network behaviour performing:
- Network definition
- describe the configuration of the network
- Builder for
NetworkNodeConfig
. - A handle containing:
- internal network node receiver
- Configuration for Libp2p’s request-response
Enums§
- Actions to send from the client to the swarm
- events generated by the swarm that we wish to relay to the client
- internal representation of the network events only used for event processing before relaying to client
- Error type for NetworkNodeConfigBuilder
Constants§
- The default Kademlia replication factor
Functions§
- Bind all interfaces on port
port
NOTE we may want something more general in the fture. - Generates an authenticated transport checked against the stake table. If the stake table or authentication message is not provided, the transport will not participate in stake table authentication.
- Spawn a network node task task and return the handle and the receiver for it
Type Aliases§
BoxedTransport
is a type alias for a boxed tuple containing aPeerId
and aStreamMuxerBox
.