Class MapProof
java.lang.Object
com.exonum.binding.core.storage.indices.MapProof
public abstract class MapProof
extends java.lang.Object
A view of a
ProofMapIndexProxy
, 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
Modifier and Type Method Description abstract MapProofOuterClass.MapProof
getAsMessage()
Returns the proof as a protobuf message.static MapProof
newInstance(MapProofOuterClass.MapProof mapProofMessage)
Creates a new MapProof given the map proof message.static MapProof
parseFrom(byte[] mapProofMessage)
Creates a new MapProof given the serialized map proof message.
-
Constructor Details
-
MapProof
public MapProof()
-
-
Method Details
-
getAsMessage
Returns the proof as a protobuf message. -
parseFrom
public static MapProof parseFrom(byte[] mapProofMessage) throws com.google.protobuf.InvalidProtocolBufferExceptionCreates a new MapProof given the serialized map proof message.- Throws:
com.google.protobuf.InvalidProtocolBufferException
- if the message is notMapProofOuterClass.MapProof
-
newInstance
Creates a new MapProof given the map proof message.
-