Skip to main content

state_root

Function state_root 

pub fn state_root<A>(
    state: impl IntoIterator<Item = (FixedBytes<32>, A)>,
) -> FixedBytes<32>
where A: Into<TrieAccount>,
Available on crate feature ethereum only.
Expand description

Ethereum specific trie root functions. Calculates the root hash of the state represented as MPT.

Corresponds to geth’s deriveHash.

§Panics

If the items are not in sorted order.