TransactionSignerFnImpl
Namespace: IotaSdk
Defines a type which can sign a transaction asynchronously.
This trait can be implemented downstream to enable signing when using the
TransactionBuilder::execute function.
public class TransactionSignerFnImpl : TransactionSignerFn, System.IDisposable
Inheritance Object → TransactionSignerFnImpl
Implements TransactionSignerFn, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
TransactionSignerFnImpl(UInt64)
public TransactionSignerFnImpl(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Sign(Transaction)
Sign a transaction and return a UserSignature.
public async Task<TransactionSignerFnOutput> Sign(Transaction transaction)
Parameters
transaction Transaction
Returns
Task<TransactionSignerFnOutput>
Exceptions
UsesObjects()
Whether the signer uses the objects the transaction reads, such as a
hardware wallet showing what the transaction does. When true, the
transaction builder gathers them and calls sign_with_objects instead
of sign.
public bool UsesObjects()
Returns
SignWithObjects(Transaction, Object[])
Sign a transaction given the objects it reads: its gas coins and
immutable, owned or receiving inputs at the versions it references, and
its shared inputs as the builder fetched them, which may change before
the transaction executes. The transaction builder only calls this when
uses_objects returns true, and passes no objects when it has no
client to fetch them.
public async Task<TransactionSignerFnOutput> SignWithObjects(Transaction transaction, Object[] objects)
Parameters
transaction Transaction
objects Object[]
Returns
Task<TransactionSignerFnOutput>