Function polkadot_erasure_coding::branches[][src]

pub fn branches<'a, I: 'a>(chunks: &'a [I]) -> Branches<'a, I>
Notable traits for Branches<'a, I>
impl<'a, I: AsRef<[u8]>> Iterator for Branches<'a, I> type Item = (Proof, &'a [u8]);
where
    I: AsRef<[u8]>, 
Expand description

Construct a trie from chunks of an erasure-coded value. This returns the root hash and an iterator of merkle proofs, one for each validator.