Class MapProof
- java.lang.Object
-
- com.exonum.binding.core.storage.indices.MapProof
-
public abstract class MapProof extends Object
A view of aProofMapIndexProxy, i.e., a subset of its entries coupled with a proof, which jointly allow restoring the index hash of the map. Apart from proving the existing entries in the map, MapProof can assert absence of certain keys in the underlying index.
-
-
Constructor Summary
Constructors Constructor Description MapProof()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.exonum.messages.proof.MapProofOuterClass.MapProofgetAsMessage()Returns the proof as a protobuf message.static MapProofnewInstance(com.exonum.messages.proof.MapProofOuterClass.MapProof mapProofMessage)Creates a new MapProof given the map proof message.static MapProofparseFrom(byte[] mapProofMessage)Creates a new MapProof given the serialized map proof message.
-
-
-
Method Detail
-
getAsMessage
public abstract com.exonum.messages.proof.MapProofOuterClass.MapProof getAsMessage()
Returns the proof as a protobuf message.
-
parseFrom
public static MapProof parseFrom(byte[] mapProofMessage) throws com.google.protobuf.InvalidProtocolBufferException
Creates a new MapProof given the serialized map proof message.- Throws:
com.google.protobuf.InvalidProtocolBufferException- if the message is notMapProofOuterClass.MapProof
-
newInstance
public static MapProof newInstance(com.exonum.messages.proof.MapProofOuterClass.MapProof mapProofMessage)
Creates a new MapProof given the map proof message.
-
-