AbstractPublicKey

Address-bound public identity used by account-abstraction signers.

Aptos verifies this identity through the account's on-chain authentication function. Its BCS representation is therefore the opaque account-address bytes, encoded as a byte vector, rather than one of the native cryptographic-key variants.

Constructors

Link copied to clipboard
constructor(accountAddress: AccountAddress)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun authKey(): AuthenticationKey

Get the authentication key associated with this public key

Link copied to clipboard
open override fun toBcs(): ByteArray

Get the BCS bytes

Link copied to clipboard
open override fun toByteArray(): ByteArray

Get the raw public key bytes

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

Verifies that the private key associated with this public key signed the message with the given signature.