Skip to main content

Class: UserSignature

A signature from a user

A UserSignature is most commonly used to authorize the execution and inclusion of a transaction to the blockchain.

BCS

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

Note: Due to historical reasons, signatures are serialized slightly different from the majority of the types in IOTA. In particular if a signature is ever embedded in another structure it generally is serialized as bytes meaning it has a length prefix that defines the length of the completely serialized signature.

Extends​

  • UniffiAbstractObject

Implements​

Properties​

[destructorGuardSymbol]​

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]​

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]​

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

Methods​

asMoveAuthenticator()​

asMoveAuthenticator(): MoveAuthenticatorLike;

Convert this signature into a move authenticator if it is one, or panic otherwise

Returns​

MoveAuthenticatorLike

Implementation of​

UserSignatureLike.asMoveAuthenticator


asMultisig()​

asMultisig(): MultisigAggregatedSignatureLike;

Convert this signature into a multisig aggregated signature if it is one, or panic otherwise

Returns​

MultisigAggregatedSignatureLike

Implementation of​

UserSignatureLike.asMultisig


asOptMoveAuthenticator()​

asOptMoveAuthenticator(): 
| MoveAuthenticatorLike
| undefined;

Convert this signature into a move authenticator if it is one, or return None otherwise

Returns​

| MoveAuthenticatorLike | undefined

Implementation of​

UserSignatureLike.asOptMoveAuthenticator


asOptMultisig()​

asOptMultisig(): 
| MultisigAggregatedSignatureLike
| undefined;

Convert this signature into a multisig aggregated signature if it is one, or return None otherwise

Returns​

| MultisigAggregatedSignatureLike | undefined

Implementation of​

UserSignatureLike.asOptMultisig


asOptPasskeyAuthenticator()​

asOptPasskeyAuthenticator(): 
| PasskeyAuthenticatorLike
| undefined;

Convert this signature into a passkey authenticator if it is one, or return None otherwise

Returns​

| PasskeyAuthenticatorLike | undefined

Implementation of​

UserSignatureLike.asOptPasskeyAuthenticator


asOptSimple()​

asOptSimple(): SimpleSignatureLike | undefined;

Convert this signature into a simple signature if it is one, or return None otherwise

Returns​

SimpleSignatureLike | undefined

Implementation of​

UserSignatureLike.asOptSimple


asPasskeyAuthenticator()​

asPasskeyAuthenticator(): PasskeyAuthenticatorLike;

Convert this signature into a passkey authenticator if it is one, or panic otherwise

Returns​

PasskeyAuthenticatorLike

Implementation of​

UserSignatureLike.asPasskeyAuthenticator


asSimple()​

asSimple(): SimpleSignatureLike;

Convert this signature into a simple signature if it is one, or panic otherwise

Returns​

SimpleSignatureLike

Implementation of​

UserSignatureLike.asSimple


deriveAddress()​

deriveAddress(): AddressLike;

Derive the Address of the signer that this signature authenticates.

Returns​

AddressLike

Implementation of​

UserSignatureLike.deriveAddress


equals()​

equals(other): boolean;

Parameters​

other​

UserSignature

Returns​

boolean


isMoveAuthenticator()​

isMoveAuthenticator(): boolean;

Check if this signature is a move authenticator

Returns​

boolean

Implementation of​

UserSignatureLike.isMoveAuthenticator


isMultisig()​

isMultisig(): boolean;

Check if this signature is a multisig aggregated signature

Returns​

boolean

Implementation of​

UserSignatureLike.isMultisig


isPasskeyAuthenticator()​

isPasskeyAuthenticator(): boolean;

Check if this signature is a passkey authenticator

Returns​

boolean

Implementation of​

UserSignatureLike.isPasskeyAuthenticator


isSimple()​

isSimple(): boolean;

Check if this signature is a simple signature

Returns​

boolean

Implementation of​

UserSignatureLike.isSimple


scheme()​

scheme(): SignatureScheme;

Return the flag for this signature scheme

Returns​

SignatureScheme

Implementation of​

UserSignatureLike.scheme


toBase64()​

toBase64(): string;

Returns​

string

Implementation of​

UserSignatureLike.toBase64


toBcs()​

toBcs(): ArrayBuffer;

Convert this type to BCS encoded bytes.

Returns​

ArrayBuffer

Implementation of​

UserSignatureLike.toBcs


toBytes()​

toBytes(): ArrayBuffer;

Returns​

ArrayBuffer

Implementation of​

UserSignatureLike.toBytes


toDebugString()​

toDebugString(): string;

Returns​

string


toDisplayString()​

toDisplayString(): string;

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

Returns​

string

Implementation of​

UserSignatureLike.toDisplayString


toJson()​

toJson(): string;

Convert this type to a JSON encoded string.

Returns​

string

Implementation of​

UserSignatureLike.toJson


toString()​

toString(): string;

Returns a string representation of an object.

Returns​

string


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


fromBase64()​

static fromBase64(base64): UserSignatureLike;

Parameters​

base64​

string

Returns​

UserSignatureLike


fromBcs()​

static fromBcs(bcs): UserSignatureLike;

Create this type from BCS encoded bytes.

Parameters​

bcs​

ArrayBuffer

Returns​

UserSignatureLike


fromBytes()​

static fromBytes(bytes): UserSignatureLike;

Parameters​

bytes​

ArrayBuffer

Returns​

UserSignatureLike


fromJson()​

static fromJson(json): UserSignatureLike;

Create this type from a JSON encoded string.

Parameters​

json​

string

Returns​

UserSignatureLike


instanceOf()​

static instanceOf(obj_): obj_ is UserSignature;

Parameters​

obj_​

any

Returns​

obj_ is UserSignature


newMoveAuthenticator()​

static newMoveAuthenticator(authenticator): UserSignatureLike;

Parameters​

authenticator​

MoveAuthenticatorLike

Returns​

UserSignatureLike


newMultisig()​

static newMultisig(signature): UserSignatureLike;

Parameters​

signature​

MultisigAggregatedSignatureLike

Returns​

UserSignatureLike


newPasskeyAuthenticator()​

static newPasskeyAuthenticator(authenticator): UserSignatureLike;

Parameters​

authenticator​

PasskeyAuthenticatorLike

Returns​

UserSignatureLike


newSimple()​

static newSimple(signature): UserSignatureLike;

Parameters​

signature​

SimpleSignatureLike

Returns​

UserSignatureLike