Expand description
Libp2p based/production networking implementation This module provides a libp2p based networking implementation where each node in the network forms a tcp or udp connection to a subset of other nodes in the network
Structs§
- Empty
- Stubbed out Ack
- Gossip
Config - Configuration for Libp2p’s Gossipsub
- Libp2p
Metrics Value - Libp2p-specific metrics
- Libp2p
Network - Networking implementation that uses libp2p
generic over
M
which is the message type - Libp2p
Network 🔒Inner - The underlying state of the libp2p network
- Request
Response Config - Configuration for Libp2p’s request-response
Constants§
- QC_
TOPIC - hardcoded topic of QC used
Functions§
- derive_
libp2p_ keypair - Derive a Libp2p keypair from a given private key
- derive_
libp2p_ multiaddr - Parse a Libp2p Multiaddr from a string. The input string should be in the format
hostname:port
orip:port
. This function derives aMultiaddr
from the input string. - derive_
libp2p_ peer_ id - Derive a Libp2p Peer ID from a given private key
Type Aliases§
- Bootstrap
Addrs - convenience alias for the type for bootstrap addresses concurrency primitives are needed for having tests
- Peer
Info Vec - Type alias for a shared collection of peerid, multiaddrs