Package | Description |
---|---|
com.guardtime.ksi.tree |
Classes and interfaces to build a hash tree
|
Modifier and Type | Method and Description |
---|---|
protected ImprintNode |
HashTreeBuilder.aggregate(ImprintNode left,
ImprintNode right) |
ImprintNode |
BlindingMaskLinkingHashTreeBuilder.build()
Builds the binary tree and returns the root hash of the tree.
|
ImprintNode |
HashTreeBuilder.build()
Builds the hash tree and returns the root hash of the tree.
|
protected ImprintNode |
BlindingMaskLinkingHashTreeBuilder.calculateBlindingMaskNode() |
protected ImprintNode |
BlindingMaskLinkingHashTreeBuilder.calculateNewNode(ImprintNode node) |
protected ImprintNode |
CanonicalHashTreeBuilder.getRootNode(LinkedList<ImprintNode> heads) |
protected ImprintNode |
HashTreeBuilder.getRootNode(LinkedList<ImprintNode> heads) |
Modifier and Type | Method and Description |
---|---|
void |
BlindingMaskLinkingHashTreeBuilder.add(ImprintNode... nodes)
Adds a new list of leaves to the binary tree.
|
void |
HashTreeBuilder.add(ImprintNode... nodes)
Adds a new array of child nodes to the hash tree.
|
void |
BlindingMaskLinkingHashTreeBuilder.add(ImprintNode node)
Adds a new node to the tree.
|
void |
HashTreeBuilder.add(ImprintNode node)
Adds a new single child node to the hash tree.
|
void |
BlindingMaskLinkingHashTreeBuilder.add(ImprintNode node,
IdentityMetadata metadata)
IdentityMetadata isn't supported by BlindingMaskLinkingHashTreeBuilder and this method always
throws an UnsupportedOperationException exception. |
void |
HashTreeBuilder.add(ImprintNode node,
IdentityMetadata metadata)
Adds a new leaf with its metadata to the hash tree.
|
protected ImprintNode |
HashTreeBuilder.aggregate(ImprintNode left,
ImprintNode right) |
long |
BlindingMaskLinkingHashTreeBuilder.calculateHeight(ImprintNode node)
Calculates the binary tree height if new leaf would be added.
|
long |
HashTreeBuilder.calculateHeight(ImprintNode node)
Calculates the height of the hash tree in case a new node would be added.
|
long |
BlindingMaskLinkingHashTreeBuilder.calculateHeight(ImprintNode node,
IdentityMetadata metadata)
IdentityMetadata isn't supported by BlindingMaskLinkingHashTreeBuilder . |
long |
HashTreeBuilder.calculateHeight(ImprintNode node,
IdentityMetadata metadata)
Calculates the height of the hash tree in case a new node with metadata would be added.
|
protected ImprintNode |
BlindingMaskLinkingHashTreeBuilder.calculateNewNode(ImprintNode node) |
Modifier and Type | Method and Description |
---|---|
protected ImprintNode |
CanonicalHashTreeBuilder.getRootNode(LinkedList<ImprintNode> heads) |
protected ImprintNode |
HashTreeBuilder.getRootNode(LinkedList<ImprintNode> heads) |
Constructor and Description |
---|
ImprintNode(ImprintNode node)
Creates a copy of a node.
|
ImprintNode(ImprintNode leftChild,
ImprintNode rightChild,
DataHash value,
long level)
Creates a non-leaf node.
|
Constructor and Description |
---|
BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
byte[] initializationVector,
DataHash previousBlockHash,
TreeBuilder<ImprintNode> treeBuilder)
Creates an instance of
BlindingMaskLinkingHashTreeBuilder . |
Copyright © 2024 Guardtime. All rights reserved.