Skip to main content

TransactionSigner

Namespace: IotaSdk

An async signer implementation which wraps a TransactionSignerFn definition, which can be used to sign a transaction with a callback.

public class TransactionSigner : ITransactionSigner, System.IDisposable

Inheritance Object → TransactionSigner
Implements ITransactionSigner, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TransactionSigner(UInt64)​

public TransactionSigner(ulong pointer)

Parameters​

pointer UInt64

TransactionSigner(TransactionSignerFn)​

public TransactionSigner(TransactionSignerFn signerFn)

Parameters​

signerFn TransactionSignerFn

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Sign(Transaction)​

public async Task<UserSignature> Sign(Transaction txn)

Parameters​

txn Transaction

Returns​

Task<UserSignature>

Exceptions​

SdkFfiException

FromEd25519(Ed25519PrivateKey)​

public static TransactionSigner FromEd25519(Ed25519PrivateKey key)

Parameters​

key Ed25519PrivateKey

Returns​

TransactionSigner

FromKeypair(SimpleKeypair)​

public static TransactionSigner FromKeypair(SimpleKeypair key)

Parameters​

key SimpleKeypair

Returns​

TransactionSigner

FromLedger(LedgerSigner)​

Create a transaction signer that signs with a Ledger device. The transaction builder passes it the transaction's objects so the device shows what the transaction does; without them, or with an IOTA app older than 1.0, it blind-signs, which the app only allows when blind signing is enabled in its settings.

public static TransactionSigner FromLedger(LedgerSigner signer)

Parameters​

signer LedgerSigner

Returns​

TransactionSigner

FromMoveAuthenticator(MoveAuthenticator)​

public static TransactionSigner FromMoveAuthenticator(MoveAuthenticator auth)

Parameters​

auth MoveAuthenticator

Returns​

TransactionSigner

FromSecp256k1(Secp256k1PrivateKey)​

public static TransactionSigner FromSecp256k1(Secp256k1PrivateKey key)

Parameters​

key Secp256k1PrivateKey

Returns​

TransactionSigner

FromSecp256r1(Secp256r1PrivateKey)​

public static TransactionSigner FromSecp256r1(Secp256r1PrivateKey key)

Parameters​

key Secp256r1PrivateKey

Returns​

TransactionSigner