// Returns a HashTree::HashNode that contains a HashLeaf with the given data.
Returns a HashTree::HashNode that contains a HashLeaf with the given data.
Returns a HashTree :: HashNode that contains a HashLeaf with the given data .
fn hash_node_with_hash_tree(label: &Label, hash_tree: HashTree) -> HashTree {
    HashTree::Node {
        digest: node_digest(label, &hash_tree.digest().0),
        label: label.clone(),
        hash_tree: Box::new(hash_tree),
    }
}
fn hash_node_with_hash_tree ( label : & Label , hash_tree : HashTree ) -> HashTree { HashTree :: Node { digest : node_digest ( label , & hash_tree . digest ( ) . 0 ) , label : label . clone ( ) , hash_tree : Box :: new ( hash_tree ) , } }
Returns a HashTree::HashNode that contains a HashLeaf with the given data.
Returns a HashTree :: HashNode that contains a HashLeaf with the given data .
label
&Label
hash_tree
HashTree