Class CheckedListProofImpl<E>

  • All Implemented Interfaces:
    CheckedProof, CheckedListProof

    public class CheckedListProofImpl<E>
    extends java.lang.Object
    implements CheckedListProof
    A checked list proof includes list proof verification results.

    If it is correct you may access:

    • a calculated Merkle root hash
    • proof elements
    If the proof is not valid, you may get the verification status using getProofStatus() with description of why the proof is not valid.
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckedListProofImpl​(HashCode calculatedRootHash, java.util.NavigableMap<java.lang.Long,​E> elements, ListProofStatus proofStatus)
      Creates checked list proof.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.NavigableMap<java.lang.Long,​E> getElements()
      Get all list elements.
      ListProofStatus getProofStatus()
      Returns the status of this proof: whether it is structurally valid.
      HashCode getRootHash()
      Returns the calculated root hash of the proof.
      boolean isValid()
      Returns true if proof status is valid, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckedListProofImpl

        public CheckedListProofImpl​(HashCode calculatedRootHash,
                                    java.util.NavigableMap<java.lang.Long,​E> elements,
                                    ListProofStatus proofStatus)
        Creates checked list proof.
        Parameters:
        calculatedRootHash - calculated root hash of the proof
        elements - proof elements collection
        proofStatus - a status of proof verification