/// Get the merkle root from proof.
Get the merkle root from proof.
Get the merkle root from proof .
pub fn to_root(&self, leaf: &PublicKey) -> RingRoot {
        let mut cur = leaf.0.to_affine().get_u();
        for (depth_to_bottom, point) in self.0.iter().enumerate() {
            let mut chunk = point.siblings.clone();
            chunk.insert(point.current_selection.expect("element index in copath not specified"), Some(cur));
            cur = auth_hash::<A>(&chunk);
        }
        RingRoot(cur)
    }
pub fn to_root ( & self , leaf : & PublicKey ) -> RingRoot { let mut cur = leaf . 0 . to_affine ( ) . get_u ( ) ; for ( depth_to_bottom , point ) in self . 0 . iter ( ) . enumerate ( ) { let mut chunk = point . siblings . clone ( ) ; chunk . insert ( point . current_selection . expect ( " " ) , Some ( cur ) ) ; cur = auth_hash :: < A > ( & chunk ) ; } RingRoot ( cur ) }
Get the merkle root from proof.
Get the merkle root from proof .
&self
leaf
&PublicKey