@CordaInternal fun leafIndex(leaf: SecureHash): Int
Method to return the index of the input leaf in the partial Merkle tree structure.
leaf
- the component hash to check.
MerkleTreeException
- if the provided hash is not in the tree.
Return
leaf-index of this component (starting from zero).