reth_primitives::proofs

Function ordered_trie_root_with_encoder

pub fn ordered_trie_root_with_encoder<T, F>(
    items: &[T],
    encode: F,
) -> FixedBytes<32>
where F: FnMut(&T, &mut Vec<u8>),
Expand description

Compute a trie root of the collection of items with a custom encoder.