reth_trie::witness

Function next_root_from_proofs

Source
pub fn next_root_from_proofs(
    trie_nodes: BTreeMap<Nibbles, Either<B256, Vec<u8>>>,
    trie_node_provider: impl FnMut(Nibbles) -> Result<Bytes, TrieWitnessError>,
) -> Result<B256, TrieWitnessError>
Expand description

Computes the next root hash of a trie by processing a set of trie nodes and their provided values.