Class BlockProof


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

      • BlockProof

        public BlockProof()
    • Method Detail

      • getAsMessage

        public abstract com.exonum.messages.core.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​(com.exonum.messages.core.Proofs.BlockProof proofMessage)
        Creates a new BlockProof given the block proof message.