Module alloy_consensus::proofs
source · Expand description
Helper function for calculating Merkle proofs and hashes.
Functions§
- Calculates the root hash for ommer/uncle headers.
- Calculates the receipt root.
- Calculate a transaction root.
- Calculates the root hash of the withdrawals.
- Compute a trie root of the collection of rlp encodable items.
- Compute a trie root of the collection of items with a custom encoder.
- Calculates the root hash of the state represented as MPT.
- Hashes and sorts account keys, then proceeds to calculating the root hash of the state represented as MPT. See
state_root_unsorted
for more info. - Hashes and sorts account keys, then proceeds to calculating the root hash of the state represented as MPT. See
state_root_unsorted
for more info. - Sorts the hashed account keys and calculates the root hash of the state represented as MPT. See
state_root
for more info. - Calculates the root hash of account storage trie.
- Hashes storage keys, sorts them and them calculates the root hash of the storage trie. See
storage_root_unsorted
for more info. - Sorts and calculates the root hash of account storage trie. See
storage_root
for more info.