Class MerkleTree


  • public class MerkleTree
    extends java.lang.Object
    MerkleTree
    • Field Detail

      • EMPTY_LEAF

        public static final MerkleTree EMPTY_LEAF
    • Constructor Detail

      • MerkleTree

        public MerkleTree()
        MerkleTree empty constructor
      • MerkleTree

        public MerkleTree​(byte[] root,
                          MerkleTree leftLeaf,
                          MerkleTree rightLeaf)
        Initialize the needed parameters for MerkleTree constructor
        Parameters:
        root - : the root of the MerkleTree
        leftLeaf - : the left leaf of the MerkleTree
        rightLeaf - : the right leaf of the MerkleTree
    • Method Detail

      • getRoot

        public byte[] getRoot()
        Returns:
        root for type byte[]
      • getLeftLeaf

        public MerkleTree getLeftLeaf()
        Returns:
        left sheet for type MerkleTree
      • getRightLeaf

        public MerkleTree getRightLeaf()
        Returns:
        right sheet for type MerkleTree