Class FinalitySignature
- java.lang.Object
-
- com.casper.sdk.model.event.finalitysignature.FinalitySignature
-
- All Implemented Interfaces:
EventData
- Direct Known Subclasses:
FinalitySignatureV1,FinalitySignatureV2
public abstract class FinalitySignature extends java.lang.Object implements EventData
Interface for V1 and V2 finality signatures.
-
-
Constructor Summary
Constructors Constructor Description FinalitySignature()FinalitySignature(Digest blockHash, long eraId, PublicKey publicKey, Signature signature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestgetBlockHash()The block hash of the associated block.longgetEraId()The era in which the associated block was created.PublicKeygetPublicKey()The public key of the signing validator.SignaturegetSignature()The signature over the block hash of the associated block.voidsetBlockHash(Digest blockHash)The block hash of the associated block.voidsetEraId(long eraId)The era in which the associated block was created.voidsetPublicKey(PublicKey publicKey)The public key of the signing validator.voidsetSignature(Signature signature)The signature over the block hash of the associated block.
-
-
-
Method Detail
-
getBlockHash
public Digest getBlockHash()
The block hash of the associated block.
-
getEraId
public long getEraId()
The era in which the associated block was created.
-
getPublicKey
public PublicKey getPublicKey()
The public key of the signing validator.
-
getSignature
public Signature getSignature()
The signature over the block hash of the associated block.
-
setBlockHash
public void setBlockHash(Digest blockHash)
The block hash of the associated block.
-
setEraId
public void setEraId(long eraId)
The era in which the associated block was created.
-
setPublicKey
public void setPublicKey(PublicKey publicKey)
The public key of the signing validator.
-
setSignature
public void setSignature(Signature signature)
The signature over the block hash of the associated block.
-
-