Skip to main content

ValidatorSignature

type ValidatorSignature

A signature from a Validator

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text validator-signature = u64 ; epoch bls12381-public-key bls12381-signature ```

type ValidatorSignature struct {
// contains filtered or unexported fields
}

func LiftFromExternalValidatorSignature

func LiftFromExternalValidatorSignature(handle uint64) *ValidatorSignature

func NewValidatorSignature

func NewValidatorSignature(epoch uint64, publicKey *Bls12381PublicKey, signature *Bls12381Signature) *ValidatorSignature

func ValidatorSignatureFromBcs

func ValidatorSignatureFromBcs(bcs []byte) (*ValidatorSignature, error)

Create this type from BCS encoded bytes.

func ValidatorSignatureFromJson

func ValidatorSignatureFromJson(json string) (*ValidatorSignature, error)

Create this type from JSON encoded string.

func (*ValidatorSignature) DebugString

func (_self *ValidatorSignature) DebugString() string

func (*ValidatorSignature) Destroy

func (object *ValidatorSignature) Destroy()

func (*ValidatorSignature) Epoch

func (_self *ValidatorSignature) Epoch() uint64

func (*ValidatorSignature) Eq

func (_self *ValidatorSignature) Eq(other *ValidatorSignature) bool

func (*ValidatorSignature) Ne

func (_self *ValidatorSignature) Ne(other *ValidatorSignature) bool

func (*ValidatorSignature) PublicKey

func (_self *ValidatorSignature) PublicKey() *Bls12381PublicKey

func (*ValidatorSignature) Signature

func (_self *ValidatorSignature) Signature() *Bls12381Signature