PasskeyAccount

class PasskeyAccount(credentialPublicKey: Secp256r1PublicKey, signer: WebAuthnSigner, address: AccountAddressInput? = null) : TransactionSigner

A transaction signer backed by an application-owned P-256 WebAuthn credential.

Constructors

Link copied to clipboard
constructor(credentialPublicKey: Secp256r1PublicKey, signer: WebAuthnSigner, address: AccountAddressInput? = null)

Properties

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

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
open override fun verifySignature(message: ByteArray, signature: Signature): Boolean

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