Expand description
P2P networking integration for guts-node.
This module provides the P2P layer integration using commonware-p2p’s authenticated network for production BFT consensus.
§Channels
The consensus engine requires several P2P channels:
- Pending: For pending consensus votes (channel 0)
- Recovered: For recovered messages after reconnection (channel 1)
- Resolver: For fetching missing certificates (channel 2)
- Broadcast: For block broadcast messages (channel 3)
- Marshal: For block sync messages (channel 4)
Structs§
- Authenticated
Network - Authenticated P2P network for BFT consensus.
- Authenticated
P2pConfig - Configuration for the authenticated P2P network.
- Consensus
Channels - Consensus P2P channels for the simplex engine.
- P2PManager
- Legacy P2P manager stub for backward compatibility.
Constants§
- BROADCAST_
CHANNEL - MARSHAL_
CHANNEL - MAX_
MESSAGE_ SIZE - Maximum P2P message size (1MB).
- PENDING_
CHANNEL - Channel IDs for consensus messaging.
- RECOVERED_
CHANNEL - RESOLVER_
CHANNEL
Functions§
- parse_
bootstrapper - Parse bootstrapper string in format “pubkey@host:port”.
- parse_
private_ key - Parse a private key from hex string (using seed derivation).
- parse_
public_ key - Parse a public key from hex string.
Type Aliases§
- Tokio
Context - Type alias for the commonware tokio runtime.