Module reth_trie_common::root
source · Expand description
Common root computation functions.
Functions§
- Adjust the index of an item for rlp encoding.
- 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.