reth_trie::test_utils

Function state_root_prehashed

Source
pub fn state_root_prehashed<I, S>(accounts: I) -> B256
where I: IntoIterator<Item = (B256, (Account, S))>, S: IntoIterator<Item = (B256, U256)>,
Available on crate feature test-utils only.
Expand description

Compute the state root of a given set of accounts with prehashed keys using [triehash::trie_root].