Skip to main content

ValidatorSignature

open class ValidatorSignature : Disposable, AutoCloseable, ValidatorSignatureInterface

A signature from a Validator

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

ValidatorSignatureconstructor(epoch: ULong, publicKey: Bls12381PublicKey, signature: Bls12381Signature)

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
epochopen override fun epoch(): ULong
equalsopen operator override fun equals(other: Any?): Boolean
publicKeyopen override fun publicKey(): Bls12381PublicKey
signatureopen override fun signature(): Bls12381Signature
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
toStringopen override fun toString(): String

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): ValidatorSignature
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): ValidatorSignature
Create this type from a JSON encoded string.