corda / net.corda.core.crypto / PartialMerkleTree / leafIndex

leafIndex

@CordaInternal fun leafIndex(leaf: SecureHash): Int

Method to return the index of the input leaf in the partial Merkle tree structure.

Parameters

leaf - the component hash to check.

Exceptions

MerkleTreeException - if the provided hash is not in the tree.

Return
leaf-index of this component (starting from zero).