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
Exceptions
FromEd25519(Ed25519PrivateKey)
public static TransactionSigner FromEd25519(Ed25519PrivateKey key)
Parameters
Returns
FromKeypair(SimpleKeypair)
public static TransactionSigner FromKeypair(SimpleKeypair key)
Parameters
key SimpleKeypair
Returns
FromMoveAuthenticator(MoveAuthenticator)
public static TransactionSigner FromMoveAuthenticator(MoveAuthenticator auth)
Parameters
auth MoveAuthenticator
Returns
FromSecp256k1(Secp256k1PrivateKey)
public static TransactionSigner FromSecp256k1(Secp256k1PrivateKey key)
Parameters
Returns
FromSecp256r1(Secp256r1PrivateKey)
public static TransactionSigner FromSecp256r1(Secp256r1PrivateKey key)