TransactionSigner

Suspend-capable signer contract for local keys, wallets, passkeys, and remote custody systems.

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard

Allows optional protocol modules to reject unsupported signer families before signing.

Link copied to clipboard
abstract val publicKey: PublicKey

Functions

Link copied to clipboard
abstract suspend fun signBytes(message: ByteArray): AptosResult<Signature>

Signs arbitrary bytes without imposing a display encoding.

Link copied to clipboard
abstract suspend fun signText(message: String): AptosResult<Signature>

Signs UTF-8 text. Wallet implementations may present this text to the user.

Link copied to clipboard

Signs the correct domain-separated message for transaction.

Link copied to clipboard
abstract fun verifySignature(message: ByteArray, signature: Signature): Boolean

Verifies signature against arbitrary bytes using this signer's public key.