Class IndexProof
- java.lang.Object
-
- com.exonum.binding.core.blockchain.proofs.IndexProof
-
public abstract class IndexProof extends Object
Proof of authenticity for a single index in the database.It is comprised of a
BlockProofand aMapProoffrom 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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.exonum.messages.core.Proofs.IndexProofgetAsMessage()Returns the proof as a protobuf message.static IndexProofnewInstance(com.exonum.messages.core.Proofs.IndexProof proofMessage)Creates a new IndexProof given the index proof message.static IndexProofparseFrom(byte[] indexProof)Parses a serialized index proof message.
-
-
-
Method Detail
-
getAsMessage
public abstract com.exonum.messages.core.Proofs.IndexProof getAsMessage()
Returns the proof as a protobuf message.
-
parseFrom
public static IndexProof parseFrom(byte[] indexProof) throws com.google.protobuf.InvalidProtocolBufferException
Parses a serialized index proof message.- Throws:
com.google.protobuf.InvalidProtocolBufferException- if the message is notProofs.IndexProof
-
newInstance
public static IndexProof newInstance(com.exonum.messages.core.Proofs.IndexProof proofMessage)
Creates a new IndexProof given the index proof message.
-
-