Function reth_trie::root::state_root

pub fn state_root<A>(
    state: impl IntoIterator<Item = (FixedBytes<32>, A)>,
) -> FixedBytes<32>
where A: Into<TrieAccount>,
Expand description

Calculates the root hash of the state represented as MPT.

Corresponds to geth’s deriveHash.

§Panics

If the items are not in sorted order.