Function first_index_in_layer

Source
pub fn first_index_in_layer(layer: usize, height: usize) -> usize
Expand description

Return the first global index at a given layer for a perfect binary Merkle tree of height. Layers are numbered with leaves at 0 and root at height.