root And Used Hashes
fun rootAndUsedHashes(node: PartialMerkleTree.PartialTree, usedHashes: MutableList<SecureHash>): SecureHash
Recursive calculation of root of this partial tree. Modifies usedHashes to later check for inclusion with hashes provided.
Return
the root SecureHash of this partial Merkle tree.
Parameters
node
the partial Merkle tree for which we want to calculate the Merkle root.
used Hashes
a mutable list that at the end of this recursive algorithm, it will consist of the included leaves (hashes of the visible components).