Skip to main content

IUserSignature

Namespace: IotaSdk

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.

public interface IUserSignature : System.IEquatable`1[[IotaSdk.UserSignature, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IEquatable<UserSignature>
Attributes NullableContextAttribute

Methods​

AsMoveAuthenticator()​

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

MoveAuthenticator AsMoveAuthenticator()

Returns​

MoveAuthenticator

AsMultisig()​

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

MultisigAggregatedSignature AsMultisig()

Returns​

MultisigAggregatedSignature

AsOptMoveAuthenticator()​

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

MoveAuthenticator? AsOptMoveAuthenticator()

Returns​

MoveAuthenticator?

AsOptMultisig()​

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

MultisigAggregatedSignature? AsOptMultisig()

Returns​

MultisigAggregatedSignature?

AsOptPasskeyAuthenticator()​

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

PasskeyAuthenticator? AsOptPasskeyAuthenticator()

Returns​

PasskeyAuthenticator?

AsOptSimple()​

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

SimpleSignature? AsOptSimple()

Returns​

SimpleSignature?

AsPasskeyAuthenticator()​

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

PasskeyAuthenticator AsPasskeyAuthenticator()

Returns​

PasskeyAuthenticator

AsSimple()​

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

SimpleSignature AsSimple()

Returns​

SimpleSignature

DeriveAddress()​

Derive the Address of the signer that this signature authenticates.

Address DeriveAddress()

Returns​

Address

IsMoveAuthenticator()​

Check if this signature is a move authenticator

bool IsMoveAuthenticator()

Returns​

Boolean

IsMultisig()​

Check if this signature is a multisig aggregated signature

bool IsMultisig()

Returns​

Boolean

IsPasskeyAuthenticator()​

Check if this signature is a passkey authenticator

bool IsPasskeyAuthenticator()

Returns​

Boolean

IsSimple()​

Check if this signature is a simple signature

bool IsSimple()

Returns​

Boolean

Scheme()​

Return the flag for this signature scheme

SignatureScheme Scheme()

Returns​

SignatureScheme

ToBase64()​

string ToBase64()

Returns​

String

ToBcs()​

Convert this type to BCS encoded bytes.

Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToBytes()​

Byte[] ToBytes()

Returns​

Byte[]

ToDisplayString()​

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.

string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

string ToJson()

Returns​

String

Exceptions​

SdkFfiException