Abstract
Abstract
signAbstract
signSign the given transaction using the available signing capabilities.
the transaction to be signed
Signature
Abstract
signSign a transaction using the available signing capabilities.
the raw transaction
the AccountAuthenticator containing the signature of the transaction, together with the account's public key
Abstract
signSign a message using the available signing capabilities.
the signing message, as binary input
the AccountAuthenticator containing the signature, together with the account's public key
Verify the given message and signature with the public key. This function helps ensure the integrity and authenticity of a message by validating its signature.
The arguments for verifying the signature.
A boolean indicating whether the signature is valid.
Static
authRetrieve the authentication key for the associated account using the provided public key. This key enables account owners to rotate their private key(s) associated with the account without changing the address that hosts their account. See here for more info: https://aptos.dev/concepts/accounts#single-signer-authentication
The arguments for retrieving the authentication key.
The public key of the account.
The authentication key for the associated account.
Static
fromGenerates an account from a specified derivation path and mnemonic. This function allows you to create an account using different signing schemes based on the provided arguments.
The arguments for generating the account.
Static
fromCreates an account from a given private key and address. This function allows you to instantiate an account based on the provided private key, and it can differentiate between legacy and non-legacy accounts.
The arguments for creating the account.
An instance of either Ed25519Account or SingleKeyAccount based on the provided private key.
Static
fromThe arguments required to create an account from a private key.
Account
Static
generateGenerates a new account based on the specified signing scheme and legacy option. This function allows you to create an account with either the Ed25519 signing scheme or a different scheme as specified.
Optional
args: GenerateEd25519AccountArgsThe arguments for generating the account.
Abstract class representing a generic Aptos account.
This class serves as a single entry point for account generation, allowing accounts to be created either through
Account.generate()
orAccount.fromDerivationPath
. Although it is defined as an abstract class, it should be treated as an interface and enforced using theimplements
keyword.Note: Generating an account instance does not create the account on-chain.