public class CanonicalHashTreeBuilder extends HashTreeBuilder
Hash tree is a tree in which every non-leaf node is labelled with the hash of the labels or values (in case of leaves) of its child nodes.
Note that CanonicalHashTreeBuilder
works only with ImprintNode
objects.
Canonical trees are built as follows:
Constructor and Description |
---|
CanonicalHashTreeBuilder() |
CanonicalHashTreeBuilder(HashAlgorithm algorithm) |
Modifier and Type | Method and Description |
---|---|
protected ImprintNode |
getRootNode(LinkedList<ImprintNode> heads) |
add, add, add, aggregate, build, calculateHeight, calculateHeight
public CanonicalHashTreeBuilder(HashAlgorithm algorithm)
public CanonicalHashTreeBuilder()
protected ImprintNode getRootNode(LinkedList<ImprintNode> heads)
getRootNode
in class HashTreeBuilder
Copyright © 2024 Guardtime. All rights reserved.