verify

fun verify(merkleRootHash: SecureHash, hashesToCheck: List<SecureHash>): Boolean

Function to verify a PartialMerkleTree against an input Merkle root and a list of leaves. The tree should only contain the leaves defined in hashesToCheck.

Parameters

merkleRootHash

Hash that should be checked for equality with root calculated from this partial tree.

hashesToCheck

List of included leaves hashes that should be found in this partial tree.