public class MerkleTree
Creation and verification of a Merkle Tree for a Wire Transaction.
See: https://en.wikipedia.org/wiki/Merkle_tree
Transaction is split into following blocks: inputs, outputs, commands, attachments' refs. Merkle Tree is kept in a recursive data structure. Building is done bottom up, from all leaves' hashes. If a row in a tree has an odd number of elements - the final hash is hashed with itself.
Modifier and Type | Class and Description |
---|---|
static class |
MerkleTree.Companion |
static class |
MerkleTree.DuplicatedLeaf |
static class |
MerkleTree.Leaf |
static class |
MerkleTree.Node |
Modifier and Type | Field and Description |
---|---|
static MerkleTree.Companion |
Companion |
Modifier and Type | Method and Description |
---|---|
SecureHash |
getHash() |
MerkleTree |
hashNodes(MerkleTree right) |
public static MerkleTree.Companion Companion
public MerkleTree hashNodes(MerkleTree right)
public SecureHash getHash()