TransactionSigner
TransactionSigner
class TransactionSigner
An async signer implementation which wraps a TransactionSignerFn definition, which can be used
to sign a transaction with a callback.
init(signerFn:)
convenience init(signerFn: any TransactionSignerFn)
sign(txn:)
func sign(txn: Transaction) async throws -> UserSignature
fromEd25519(key:)
static func fromEd25519(key: Ed25519PrivateKey) -> TransactionSigner
fromKeypair(key:)
static func fromKeypair(key: SimpleKeypair) -> TransactionSigner
fromLedger(signer:)
static func fromLedger(signer: LedgerSigner) -> TransactionSigner
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.
fromMoveAuthenticator(auth:)
static func fromMoveAuthenticator(auth: MoveAuthenticator) -> TransactionSigner
fromSecp256k1(key:)
static func fromSecp256k1(key: Secp256k1PrivateKey) -> TransactionSigner
fromSecp256r1(key:)
static func fromSecp256r1(key: Secp256r1PrivateKey) -> TransactionSigner