Function alloy_consensus::proofs::ordered_trie_root_with_encoder

source ยท
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.