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()
CheckedListProofgetElements in interface CheckedListProofpublic HashCode getRootHash()
CheckedProofgetRootHash in interface CheckedProofpublic ListProofStatus getProofStatus()
CheckedListProofgetProofStatus in interface CheckedProofgetProofStatus in interface CheckedListProofpublic boolean isValid()
CheckedProofCheckedProof.getProofStatus().isValid in interface CheckedProofCopyright © 2018 Exonum. All rights reserved.