Class IndexProof
java.lang.Object
com.exonum.binding.core.blockchain.proofs.IndexProof
public abstract class IndexProof
extends java.lang.Object
Proof of authenticity for a single index in the database.
It is comprised of a BlockProof
and a MapProof
from the collection
aggregating the index hashes of proof indexes for an index with a certain full name.
If an index does not exist in the database, then the MapProof will prove its absence.
- See Also:
- Service Data Proofs,
Schema
-
Constructor Summary
Constructors Constructor Description IndexProof()
-
Method Summary
Modifier and Type Method Description abstract Proofs.IndexProof
getAsMessage()
Returns the proof as a protobuf message.static IndexProof
newInstance(Proofs.IndexProof proofMessage)
Creates a new IndexProof given the index proof message.static IndexProof
parseFrom(byte[] indexProof)
Parses a serialized index proof message.
-
Constructor Details
-
IndexProof
public IndexProof()
-
-
Method Details
-
getAsMessage
Returns the proof as a protobuf message. -
parseFrom
public static IndexProof parseFrom(byte[] indexProof) throws com.google.protobuf.InvalidProtocolBufferExceptionParses a serialized index proof message.- Throws:
com.google.protobuf.InvalidProtocolBufferException
- if the message is notProofs.IndexProof
-
newInstance
Creates a new IndexProof given the index proof message.
-