Class BlockProof

java.lang.Object
com.exonum.binding.core.blockchain.proofs.BlockProof

public abstract class BlockProof
extends java.lang.Object
A block with a proof. A proof contains signed precommit messages from the network validators that agreed to commit this block.

A block proof can be used independently or as a part of index proof; or transaction proof.

See Also:
Block Proof Creation, Block
  • Constructor Summary

    Constructors 
    Constructor Description
    BlockProof()  
  • Method Summary

    Modifier and Type Method Description
    abstract Proofs.BlockProof getAsMessage()
    Returns the proof as a protobuf message.
    static BlockProof newInstance​(Proofs.BlockProof proofMessage)
    Creates a new BlockProof given the block proof message.
    static BlockProof parseFrom​(byte[] blockProof)
    Parses a serialized block 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.BlockProof getAsMessage()
      Returns the proof as a protobuf message.
    • parseFrom

      public static BlockProof parseFrom​(byte[] blockProof) throws com.google.protobuf.InvalidProtocolBufferException
      Parses a serialized block proof message.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - if the message is not Proofs.BlockProof
    • newInstance

      public static BlockProof newInstance​(Proofs.BlockProof proofMessage)
      Creates a new BlockProof given the block proof message.