Module test_utils

Source
Available on crate feature test-utils only.
Expand description

Collection of trie-related test utilities.

Re-exports§

pub use triehash;

Functions§

state_root
Compute the state root of a given set of accounts using [triehash::sec_trie_root].
state_root_prehashed
Compute the state root of a given set of accounts with prehashed keys using [triehash::trie_root].
storage_root
Compute the storage root for a given account using [triehash::sec_trie_root].
storage_root_prehashed
Compute the storage root for a given account with prehashed slots using [triehash::trie_root].