pub fn state_root<A: Into<TrieAccount>>(
state: impl IntoIterator<Item = (B256, A)>,
) -> B256
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.