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