Skip to main content

Interface: UserSignatureLike

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.

Methods​

asMoveAuthenticator()​

asMoveAuthenticator(): MoveAuthenticatorLike;

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

Returns​

MoveAuthenticatorLike


asMultisig()​

asMultisig(): MultisigAggregatedSignatureLike;

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

Returns​

MultisigAggregatedSignatureLike


asOptMoveAuthenticator()​

asOptMoveAuthenticator(): 
| MoveAuthenticatorLike
| undefined;

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

Returns​

| MoveAuthenticatorLike | undefined


asOptMultisig()​

asOptMultisig(): 
| MultisigAggregatedSignatureLike
| undefined;

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

Returns​

| MultisigAggregatedSignatureLike | undefined


asOptPasskeyAuthenticator()​

asOptPasskeyAuthenticator(): 
| PasskeyAuthenticatorLike
| undefined;

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

Returns​

| PasskeyAuthenticatorLike | undefined


asOptSimple()​

asOptSimple(): SimpleSignatureLike | undefined;

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

Returns​

SimpleSignatureLike | undefined


asPasskeyAuthenticator()​

asPasskeyAuthenticator(): PasskeyAuthenticatorLike;

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

Returns​

PasskeyAuthenticatorLike


asSimple()​

asSimple(): SimpleSignatureLike;

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

Returns​

SimpleSignatureLike


deriveAddress()​

deriveAddress(): AddressLike;

Derive the Address of the signer that this signature authenticates.

Returns​

AddressLike


isMoveAuthenticator()​

isMoveAuthenticator(): boolean;

Check if this signature is a move authenticator

Returns​

boolean


isMultisig()​

isMultisig(): boolean;

Check if this signature is a multisig aggregated signature

Returns​

boolean


isPasskeyAuthenticator()​

isPasskeyAuthenticator(): boolean;

Check if this signature is a passkey authenticator

Returns​

boolean


isSimple()​

isSimple(): boolean;

Check if this signature is a simple signature

Returns​

boolean


scheme()​

scheme(): SignatureScheme;

Return the flag for this signature scheme

Returns​

SignatureScheme


toBase64()​

toBase64(): string;

Returns​

string


toBcs()​

toBcs(): ArrayBuffer;

Convert this type to BCS encoded bytes.

Returns​

ArrayBuffer


toBytes()​

toBytes(): ArrayBuffer;

Returns​

ArrayBuffer


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


toJson()​

toJson(): string;

Convert this type to a JSON encoded string.

Returns​

string