| Access | Constructor and Description |
|---|---|
| public |
| 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)Implements org. |
| public byte[] | computeRootHash(DigestCalculator
the digest calculator to use. digCalc, PartialHashtree[] the partial hash-trees forming the basis of the Merkle tree. nodes)Implements org. |
| public byte[] | recoverRootHash(DigestCalculator
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)Implements org. |
| tree | back to summary |
|---|---|
| private List<List<byte[]>> tree | |
| BinaryTreeRootCalculator | back to summary |
|---|---|
| public BinaryTreeRootCalculator() | |
| computePathToRoot | back to summary |
|---|---|
| public PartialHashtree[] computePathToRoot(DigestCalculator digCalc, PartialHashtree node, int index) Implements org. Doc from org. 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) Implements org. Doc from org. 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) Implements org. Doc from org. Recover the root hash from a path made up of PartialHashtrees.
| |