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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getAsMessage

      public abstract 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​(Proofs.IndexProof proofMessage)
      Creates a new IndexProof given the index proof message.