Class CheckedListProofImpl<E>

  • All Implemented Interfaces:
    CheckedProof, CheckedListProof

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

    If it is correct you may access:

    • a calculated index hash of corresponding collection
    • proof elements

    If the proof is the proof of absence, then empty collection of elements is returned.

    If the proof is not valid, you may get the verification status using getProofStatus() with description of why the proof is not valid.

    • Constructor Detail

      • CheckedListProofImpl

        public CheckedListProofImpl​(HashCode calculatedIndexHash,
                                    NavigableMap<Long,​E> elements,
                                    ListProofStatus proofStatus)
        Creates checked list proof.
        Parameters:
        calculatedIndexHash - calculated index hash of the proof
        elements - proof elements collection (empty in case of a proof of absence)
        proofStatus - a status of proof verification