public class MerkleTree extends Object
Modifier and Type | Field and Description |
---|---|
static MerkleTree |
EMPTY_LEAF |
Constructor and Description |
---|
MerkleTree()
MerkleTree empty constructor
|
MerkleTree(byte[] root,
MerkleTree leftLeaf,
MerkleTree rightLeaf)
Initialize the needed parameters for MerkleTree constructor
|
Modifier and Type | Method and Description |
---|---|
MerkleTree |
getLeftLeaf() |
MerkleTree |
getRightLeaf() |
byte[] |
getRoot() |
public static final MerkleTree EMPTY_LEAF
public MerkleTree()
public MerkleTree(byte[] root, MerkleTree leftLeaf, MerkleTree rightLeaf)
root
- : the root of the MerkleTreeleftLeaf
- : the left leaf of the MerkleTreerightLeaf
- : the right leaf of the MerkleTreepublic byte[] getRoot()
public MerkleTree getLeftLeaf()
public MerkleTree getRightLeaf()
Copyright © 2018 Vitam. All rights reserved.