Function grin_core::core::pmmr::peaks

source ·
pub fn peaks(size: u64) -> Vec<u64>
Expand description

Gets the postorder traversal 0-based index of all peaks in a MMR given its size. Starts with the top peak, which is always on the left side of the range, and navigates toward lower siblings toward the right of the range. For some odd reason, return empty when next node is not a leaf