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
| ValidatorSignature | constructor(epoch: ULong, publicKey: Bls12381PublicKey, signature: Bls12381Signature) |
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| epoch | open override fun epoch(): ULong |
| equals | open operator override fun equals(other: Any?): Boolean |
| publicKey | open override fun publicKey(): Bls12381PublicKey |
| signature | open override fun signature(): Bls12381Signature |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): ValidatorSignature Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): ValidatorSignature Create this type from a JSON encoded string. |