Function get_peak_info

Source
fn get_peak_info(
    elements_count: usize,
    element_index: usize,
) -> Option<(usize, usize)>
Expand description

Returns (peak_index, peak_height) for the 1-indexed element_index in an MMR with elements_count total elements. The height is the number of edges from the leaf to the peak.