Skip to main content

Class: Bls12381PublicKey

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.

Extends

  • UniffiAbstractObject

Implements

Properties

[destructorGuardSymbol]

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]

readonly [uniffiTypeNameSymbol]: "Bls12381PublicKey" = "Bls12381PublicKey";

Methods

equals()

equals(other): boolean;

Parameters

other

Bls12381PublicKey

Returns

boolean


hashCode()

hashCode(): bigint;

Returns

bigint


toBytes()

toBytes(): ArrayBuffer;

Returns

ArrayBuffer

Implementation of

Bls12381PublicKeyLike.toBytes


uniffiDestroy()

uniffiDestroy(): void;

Explicitly tell Rust to destroy the native peer that backs this object.

Once this method has been called, any following method calls will throw an error.

Can be called more than once.

Returns

void

Overrides

UniffiAbstractObject.uniffiDestroy

uniffiUse()

uniffiUse<T>(block): T;

A convenience method to use this object, then destroy it after its use.

Type Parameters

T

T

Parameters

block

(obj) => T

Returns

T

Inherited from

UniffiAbstractObject.uniffiUse

fromBytes()

static fromBytes(bytes): Bls12381PublicKeyLike;

Parameters

bytes

ArrayBuffer

Returns

Bls12381PublicKeyLike


fromStr()

static fromStr(s): Bls12381PublicKeyLike;

Parameters

s

string

Returns

Bls12381PublicKeyLike


instanceOf()

static instanceOf(obj_): obj_ is Bls12381PublicKey;

Parameters

obj_

any

Returns

obj_ is Bls12381PublicKey


random()

static random(): Bls12381PublicKeyLike;

Returns

Bls12381PublicKeyLike