Bls12381PublicKey
open class Bls12381PublicKey : Disposable, AutoCloseable, Bls12381PublicKeyInterface
A bls12381 min-sig public key.
BCS
The BCS serialized form for this type is defined by the following ABNF:
bls12381-public-key = %d96 96OCTET
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
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| toBytes | open override fun toBytes(): ByteArray |
Companion object functions
| Name | Summary |
|---|---|
| fromBytes | fun fromBytes(bytes: ByteArray): Bls12381PublicKey |
| fromStr | fun fromStr(s: String): Bls12381PublicKey |
| random | fun random(): Bls12381PublicKey |