| Modifier and Type | Method and Description |
|---|---|
| public PartialHashtree[] | computePathToRoot(DigestCalculator
the digest calculator to use. digCalc, PartialHashtree the leaf node at the start of the path. node, int the index of the node in the original list of partial hash trees. index)Calculate a path from the leaf node to the root of the last computed Merkle tree. |
| public byte[] | Returns: the root hash of the Merkle tree.the digest calculator to use. digCalc, PartialHashtree[] the partial hash-trees forming the basis of the Merkle tree. nodes)Calculate the root hash of the Merkle tree from the partial hash-tree nodes. |
| public byte[] | Returns: the root hash of the Merkle tree.the digest calculator to use. digCalc, PartialHashtree[] the partial hash-trees forming a path from a leaf to the root of the Merkle tree. nodes)Recover the root hash from a path made up of PartialHashtrees. |
| computePathToRoot | back to summary |
|---|---|
| public PartialHashtree[] computePathToRoot(DigestCalculator digCalc, PartialHashtree node, int index) Calculate a path from the leaf node to the root of the last computed Merkle tree.
| |
| computeRootHash | back to summary |
|---|---|
| public byte[] computeRootHash(DigestCalculator digCalc, PartialHashtree[] nodes) Calculate the root hash of the Merkle tree from the partial hash-tree nodes.
| |
| recoverRootHash | back to summary |
|---|---|
| public byte[] recoverRootHash(DigestCalculator digCalc, PartialHashtree[] nodes) Recover the root hash from a path made up of PartialHashtrees.
| |