Skip to main content

bag_peaks

Function bag_peaks 

Source
pub fn bag_peaks(hasher: &dyn Hasher, peaks: &[Vec<u8>], k: u64) -> Vec<u8> 
Expand description

Bag a frontier’s peaks into the single member root under hasher.

Evaluates bag_shape with each nary_mr node hashing its children. A single peak promotes to itself; an empty peak set is the empty-tree root (hasher.empty()).