public class CheckedListProofImpl<E> extends java.lang.Object implements CheckedListProof
If it is correct you may access:
getProofStatus()
with description of why the proof is not
valid.Constructor and Description |
---|
CheckedListProofImpl(HashCode calculatedRootHash,
java.util.NavigableMap<java.lang.Long,E> elements,
ListProofStatus proofStatus)
Creates checked list proof.
|
Modifier and Type | Method and 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.
|
public CheckedListProofImpl(HashCode calculatedRootHash, java.util.NavigableMap<java.lang.Long,E> elements, ListProofStatus proofStatus)
calculatedRootHash
- calculated root hash of the proofelements
- proof elements collectionproofStatus
- a status of proof verificationpublic java.util.NavigableMap<java.lang.Long,E> getElements()
CheckedListProof
getElements
in interface CheckedListProof
public HashCode getRootHash()
CheckedProof
getRootHash
in interface CheckedProof
public ListProofStatus getProofStatus()
CheckedListProof
getProofStatus
in interface CheckedProof
getProofStatus
in interface CheckedListProof
public boolean isValid()
CheckedProof
CheckedProof.getProofStatus()
.isValid
in interface CheckedProof
Copyright © 2018 Exonum. All rights reserved.