Class IndexProof


  • public abstract class IndexProof
    extends 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 Detail

      • IndexProof

        public IndexProof()
    • 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 not Proofs.IndexProof
      • newInstance

        public static IndexProof newInstance​(com.exonum.messages.core.Proofs.IndexProof proofMessage)
        Creates a new IndexProof given the index proof message.