AbstractedAccount

open class AbstractedAccount(val accountAddress: AccountAddress, val authenticationFunction: AuthenticationFunction, signer: AbstractionSigner, accountIdentity: ByteArray? = null) : TransactionSigner

A transaction signer whose authentication logic is implemented by a Move function.

Inheritors

Constructors

Link copied to clipboard
constructor(accountAddress: AccountAddress, authenticationFunction: AuthenticationFunction, signer: AbstractionSigner, accountIdentity: ByteArray? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val accountAddress: AccountAddress
Link copied to clipboard
open override val publicKey: AbstractPublicKey

Functions

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

Signs arbitrary bytes without imposing a display encoding.

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

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

Link copied to clipboard
open suspend override fun signTransaction(transaction: UnsignedTransaction): AptosResult<AccountAuthenticator>

Signs the correct domain-separated message for transaction.

Link copied to clipboard

Replace application-owned signing context after wallet or policy state changes.

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

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