Skip to main content

UserSignature

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 class UserSignature : IUserSignature, System.IEquatable`1[[IotaSdk.UserSignature, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → UserSignature
Implements IUserSignature, IEquatable<UserSignature>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

UserSignature(UInt64)​

public UserSignature(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AsMoveAuthenticator()​

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

public MoveAuthenticator AsMoveAuthenticator()

Returns​

MoveAuthenticator

AsMultisig()​

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

public MultisigAggregatedSignature AsMultisig()

Returns​

MultisigAggregatedSignature

AsOptMoveAuthenticator()​

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

public MoveAuthenticator? AsOptMoveAuthenticator()

Returns​

MoveAuthenticator?

AsOptMultisig()​

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

public MultisigAggregatedSignature? AsOptMultisig()

Returns​

MultisigAggregatedSignature?

AsOptPasskeyAuthenticator()​

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

public PasskeyAuthenticator? AsOptPasskeyAuthenticator()

Returns​

PasskeyAuthenticator?

AsOptSimple()​

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

public SimpleSignature? AsOptSimple()

Returns​

SimpleSignature?

AsPasskeyAuthenticator()​

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

public PasskeyAuthenticator AsPasskeyAuthenticator()

Returns​

PasskeyAuthenticator

AsSimple()​

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

public SimpleSignature AsSimple()

Returns​

SimpleSignature

DeriveAddress()​

Derive the Address of the signer that this signature authenticates.

public Address DeriveAddress()

Returns​

Address

IsMoveAuthenticator()​

Check if this signature is a move authenticator

public bool IsMoveAuthenticator()

Returns​

Boolean

IsMultisig()​

Check if this signature is a multisig aggregated signature

public bool IsMultisig()

Returns​

Boolean

IsPasskeyAuthenticator()​

Check if this signature is a passkey authenticator

public bool IsPasskeyAuthenticator()

Returns​

Boolean

IsSimple()​

Check if this signature is a simple signature

public bool IsSimple()

Returns​

Boolean

Scheme()​

Return the flag for this signature scheme

public SignatureScheme Scheme()

Returns​

SignatureScheme

ToBase64()​

public string ToBase64()

Returns​

String

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToBytes()​

public 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.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

Equals(UserSignature)​

public bool Equals(UserSignature? other)

Parameters​

other UserSignature?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

FromBase64(String)​

public static UserSignature FromBase64(string base64)

Parameters​

base64 String

Returns​

UserSignature

Exceptions​

SdkFfiException

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static UserSignature FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

UserSignature

Exceptions​

SdkFfiException

FromBytes(Byte[])​

public static UserSignature FromBytes(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

UserSignature

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static UserSignature FromJson(string json)

Parameters​

json String

Returns​

UserSignature

Exceptions​

SdkFfiException

NewMoveAuthenticator(MoveAuthenticator)​

public static UserSignature NewMoveAuthenticator(MoveAuthenticator authenticator)

Parameters​

authenticator MoveAuthenticator

Returns​

UserSignature

NewMultisig(MultisigAggregatedSignature)​

public static UserSignature NewMultisig(MultisigAggregatedSignature signature)

Parameters​

signature MultisigAggregatedSignature

Returns​

UserSignature

NewPasskeyAuthenticator(PasskeyAuthenticator)​

public static UserSignature NewPasskeyAuthenticator(PasskeyAuthenticator authenticator)

Parameters​

authenticator PasskeyAuthenticator

Returns​

UserSignature

NewSimple(SimpleSignature)​

public static UserSignature NewSimple(SimpleSignature signature)

Parameters​

signature SimpleSignature

Returns​

UserSignature