Expand description
Bitcoin P2P Network Protocol (Orange Paper Section 10)
This module provides Bitcoin P2P protocol message types and processing. Protocol-specific limits and validation are handled here, with consensus validation delegated to the consensus layer.
Modules§
Structs§
- Addr
Message - Address message containing peer addresses
- Addr
V2Message - BIP155: Extended address message (addrv2)
- Block
Message - Block P2P message: consensus block paired with its segwit witness stack.
- Block
TxnMessage - BlockTxn message - Response with requested transactions (BIP152)
- Cmpct
Block Message - CmpctBlock message - Compact block data (BIP152)
- Compact
Block Message - Compact block P2P message: decoded BIP152 compact block.
- FeeFilter
Message - FeeFilter message setting minimum fee rate
- GetBlock
TxnMessage - GetBlockTxn message - Request missing transactions from compact block (BIP152)
- GetBlocks
Message - GetBlocks message requesting blocks by locator
- GetData
Message - GetData message requesting specific objects
- GetHeaders
Message - GetHeaders message requesting block headers
- Headers
Message - Headers message containing block headers
- InvMessage
- Inventory message listing available objects
- Inventory
Vector - Inventory vector identifying objects
- Network
Address - Network address structure (legacy format)
- Network
Address V2 - BIP155: Extended network address structure
- NotFound
Message - NotFound message indicating requested object not found
- Peer
State - Peer connection state
- Ping
Message - Ping message for connection keepalive
- Pong
Message - Pong message responding to ping
- Prefilled
Transaction - PrefilledTransaction - Transaction included in compact block
- Reject
Message - Reject message rejecting a message with reason
- Send
Cmpct Message - SendCmpct message - Negotiate compact block relay support (BIP152)
- TxMessage
- Transaction P2P message (thin wrapper for dispatch).
- Version
Message - Version message for initial handshake
Enums§
- Address
Type - BIP155: Address type for addrv2 message
- Chain
Object - Chain object (block or transaction)
- Compact
Block Wire Convert Error - Error converting between
crate::bip152::CompactBlockand wireCmpctBlockMessage. - Network
Message - NetworkMessage: Bitcoin P2P protocol message types
- Network
Response - Network response to a message
Traits§
- Chain
State Access - Trait for chain state access (node layer implements this)
Functions§
- process_
network_ message - Process incoming network message