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 trie only.
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.