pub fn to_commitment(&self) -> MerkleTreeCommitment<D> {
        MerkleTreeCommitment {
            value: self.nodes[0].clone(),
            nr_leaves: self.n,
            hasher: self.hasher,
        }
    }
/// Convert merkle tree to a commitment. This function simply returns the root
Convert merkle tree to a commitment. This function simply returns the root
Convert merkle tree to a commitment . This function simply returns the root
pub fn to_commitment(&self) -> MerkleTreeCommitment<D> {
        MerkleTreeCommitment {
            value: self.nodes[0].clone(),
            nr_leaves: self.n,
            hasher: self.hasher,
        }
    }
pub fn to_commitment ( & self ) -> MerkleTreeCommitment < D > { MerkleTreeCommitment { value : self . nodes [ 0 ] . clone ( ) , nr_leaves : self . n , hasher : self . hasher , } }
Convert merkle tree to a commitment.
Convert merkle tree to a commitment .
&self