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.
-
Constructor Details
-
BlockProof
public BlockProof()
-
-
Method Details
-
getAsMessage
Returns the proof as a protobuf message. -
parseFrom
public static BlockProof parseFrom(byte[] blockProof) throws com.google.protobuf.InvalidProtocolBufferExceptionParses a serialized block proof message.- Throws:
com.google.protobuf.InvalidProtocolBufferException
- if the message is notProofs.BlockProof
-
newInstance
Creates a new BlockProof given the block proof message.
-