Expand description
Types for the eth wire protocol: https://github.com/ethereum/devp2p/blob/master/caps/eth.md
Re-exports§
pub use version::EthVersion;pub use version::ProtocolVersion;pub use message::EthMessage;pub use message::EthMessageID;pub use message::ProtocolMessage;pub use header::*;pub use blocks::*;pub use broadcast::*;pub use transactions::*;pub use state::*;pub use receipts::*;pub use disconnect_reason::*;pub use capability::*;pub use primitives::*;pub use snap::*;
Modules§
- blocks
- Implements the
GetBlockHeaders,GetBlockBodies,BlockHeaders, andBlockBodiesmessage types. - broadcast
- Types for broadcasting new data.
- capability
- All capability related types
- disconnect_
reason RLPxdisconnect reason sent to/received from peer- header
- Header types.
- message
- Implements Ethereum wire protocol for versions 66, 67, and 68.
Defines structs/enums for messages, request-response pairs, and broadcasts.
Handles compatibility with
EthVersion. - primitives
- Abstraction over primitive types in network messages.
- receipts
- Implements the
GetReceiptsandReceiptsmessage types. - snap
- Implements Ethereum SNAP message types.
Snap protocol runs on top of
RLPxfacilitating the exchange of Ethereum state snapshots between peers Reference: Ethereum Snapshot Protocol - state
- Implements the
GetNodeDataandNodeDatamessage types. - transactions
- Implements the
GetPooledTransactionsandPooledTransactionsmessage types. - version
- Support for representing the version of the
eth
Structs§
- Status
- The status message is used in the eth protocol handshake to ensure that peers are on the same network and are following the same fork.
- Status
Builder - Builder type for constructing a
UnifiedStatusmessage. - Status
Eth69 - Similar to
Status, but foreth/69version, which does not contain thetotal_difficultyfield. - Unified
Status UnifiedStatusis an internal superset of all ETH status fields for alleth/versions.
Enums§
- Hash
OrNumber - re-export for convenience Either a hash or a block number
- Status
Message StatusMessagecan store either the Legacy version (with TD) or the eth/69 version (omits TD).
Traits§
- Encodable2718
- Encoding trait for EIP-2718 envelopes.
Type Aliases§
- Block
Hash OrNumber - re-export for convenience A block hash or a block number