Module snap
Available on crate feature
network
only.Expand description
Implements Ethereum SNAP message types.
Snap protocol runs on top of RLPx
facilitating the exchange of Ethereum state snapshots between peers
Reference: Ethereum Snapshot Protocol
Current version: snap/1
Structs§
- Account
Data - Account data in the response.
- Account
Range Message - Response containing a number of consecutive accounts and the Merkle proofs for the entire range.
- Byte
Codes Message - Response containing a number of requested contract codes.
- GetAccount
Range Message - Request for a range of accounts from the state trie.
- GetByte
Codes Message - Request to get a number of requested contract codes.
- GetStorage
Ranges Message - Request for the storage slots of multiple accounts’ storage tries.
- GetTrie
Nodes Message - Request a number of state (either account or storage) Merkle trie nodes by path
- Storage
Data - Storage slot data in the response.
- Storage
Ranges Message - Response containing a number of consecutive storage slots for the requested account and optionally the merkle proofs for the last range (boundary proofs) if it only partially covers the storage trie.
- Trie
Nodes Message - Response containing a number of requested state trie nodes
- Trie
Path - Path in the trie for an account and its storage
Enums§
- Snap
Message Id - Message IDs for the snap sync protocol
- Snap
Protocol Message - Represents all types of messages in the snap sync protocol.