/// Append a note commitment to the Merkle Tree `self`.
Append a note commitment to the Merkle Tree `self`.
Append a note commitment to the Merkle Tree ` self ` .
pub fn append_note_commitment(
        &mut self,
        cm: NoteCommitment,
        t: &TransactionTime,
    ) -> Result<MerkleNode, ()> {
        assert_eq!(self.tree_type, TreeType::Note);
        let node = MerkleNode {
            value: note_leaf_hash(cm, t).to_repr(),
        };
        self.append(node)?;
        Ok(node)
    }
pub fn append_note_commitment ( & mut self , cm : NoteCommitment , t : & TransactionTime , ) -> Result < MerkleNode , ( ) > { assert_eq ! ( self tree_type TreeType Note ) ; let node = MerkleNode { value : note_leaf_hash ( cm , t ) . to_repr ( ) , } ; self . append ( node ) ? ; Ok ( node ) }
Append a note commitment to the Merkle Tree `self`.
Append a note commitment to the Merkle Tree ` self ` .
&mut self
cm
NoteCommitment
t
&TransactionTime