Skip to main content

Bls12381PublicKey

open class Bls12381PublicKey : Disposable, AutoCloseable, Bls12381PublicKeyInterface

A bls12381 min-sig public key.

BCS

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

Due to historical reasons, even though a min-sig Bls12381PublicKey has a fixed-length of 96, IOTA's binary representation of a min-sig Bls12381PublicKey is prefixed with its length meaning its serialized binary form (in bcs) is 97 bytes long vs a more compact 96 bytes.

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toBytesopen override fun toBytes(): ByteArray
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.

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): Bls12381PublicKey
Create this type from BCS encoded bytes.
fromBytesfun fromBytes(bytes: ByteArray): Bls12381PublicKey
fromJsonfun fromJson(json: String): Bls12381PublicKey
Create this type from a JSON encoded string.
fromStrfun fromStr(s: String): Bls12381PublicKey
randomfun random(): Bls12381PublicKey