Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract override val accountAddress: AccountAddress

Account address associated with the account

Link copied to clipboard

Whether all private key material owned by this account has been cleared.

Link copied to clipboard
abstract override val publicKey: AccountPublicKey

Public key associated with the account

Link copied to clipboard

Signing scheme used to sign transactions

Functions

Link copied to clipboard
abstract fun clearPrivateKey()

Explicitly clear private key material owned by this account.

Link copied to clipboard
override fun close()

Clears private key material when the account is owned by a managed SDK scope.

Link copied to clipboard
abstract fun sign(message: HexInput): Signature

Sign the given message with the private key.

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

Signs arbitrary bytes without imposing a display encoding.

Link copied to clipboard
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

Sign a message using the available signing capabilities.

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

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

abstract fun verifySignature(message: HexInput, signature: Signature): Boolean