merkle_path

Function merkle_path 

Source
pub fn merkle_path(leaves: &[Digest], index: usize) -> Vec<Digest>
Expand description

Calculate the Merkle path proving inclusion of the leaf at the given index in a tree constructed from the given leaves. The leaf and root are not included.

Panics if the given index is out of bounds.