pub fn append_credential_commitment(
        &mut self,
        cm: CredentialCommitment,
    ) -> Result<MerkleNode, ()> {
        assert_eq!(self.tree_type, TreeType::Credential);
        let node = MerkleNode {
            value: cm.to_repr(),
        };
        self.append(node)?;
        Ok(node)
    }
/// Append a credential commitment to the Merkle Tree `self`.
Append a credential commitment to the Merkle Tree `self`.
Append a credential commitment to the Merkle Tree ` self ` .
pub fn append_credential_commitment(
        &mut self,
        cm: CredentialCommitment,
    ) -> Result<MerkleNode, ()> {
        assert_eq!(self.tree_type, TreeType::Credential);
        let node = MerkleNode {
            value: cm.to_repr(),
        };
        self.append(node)?;
        Ok(node)
    }
pub fn append_credential_commitment ( & mut self , cm : CredentialCommitment , ) -> Result < MerkleNode , ( ) > { assert_eq ! ( self tree_type TreeType Credential ) ; let node = MerkleNode { value : cm . to_repr ( ) , } ; self . append ( node ) ? ; Ok ( node ) }
Append a credential commitment to the Merkle Tree `self`.
Append a credential commitment to the Merkle Tree ` self ` .
&mut self
cm
CredentialCommitment
&mut self
cm
CredentialCommitment