/// Utility function to build HashTrees in a more concise way.
Utility function to build HashTrees in a more concise way.
Utility function to build HashTrees in a more concise way .
fn hash_fork(digest: [u8; 32], l: HashTree, r: HashTree) -> HashTree {
        HashTree::Fork {
            digest: Digest(digest),
            left_tree: Box::new(l),
            right_tree: Box::new(r),
        }
    }
fn hash_fork ( digest : [ u8 ; 32 ] , l : HashTree , r : HashTree ) -> HashTree { HashTree :: Fork { digest : Digest ( digest ) , left_tree : Box :: new ( l ) , right_tree : Box :: new ( r ) , } }
Utility function to build HashTrees in a more concise way.
Utility function to build HashTrees in a more concise way .
digest
[u8; 32]
l
HashTree
r
HashTree