Package com.exonum.binding.common.proofs
Interface CheckedProof
-
- All Known Subinterfaces:
CheckedListProof<E>
,CheckedMapProof
- All Known Implementing Classes:
CheckedFlatMapProof
,CheckedListProofImpl
public interface CheckedProof
A checked proof is a result of proof verification operation. If it is valid, the proof contents may be accessed. SeeCheckedListProof
andCheckedMapProof
for available contents description.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HashCode
getIndexHash()
Returns the calculated index hash of the proof.ProofStatus
getProofStatus()
Returns a status of proof verification.boolean
isValid()
Returns true if proof status is valid, false otherwise.
-
-
-
Method Detail
-
getProofStatus
ProofStatus getProofStatus()
Returns a status of proof verification.
-
getIndexHash
HashCode getIndexHash()
Returns the calculated index hash of the proof. Must be equal to the index hash of the collection, providing this proof.- Throws:
IllegalStateException
- if the proof is not valid
-
isValid
boolean isValid()
Returns true if proof status is valid, false otherwise. Details about the proof verification status could be obtained viagetProofStatus()
.
-
-