@aptos-labs/ts-sdk - v3.1.1
    Preparing search index...

    Class DerivableAbstractedAccount

    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() or Account.fromDerivationPath. Although it is defined as an abstract class, it should be treated as an interface and enforced using the implements keyword.

    Note: Generating an account instance does not create the account on-chain.

    Hierarchy (View Summary)

    Index

    Implementation - Account (On-Chain Model)

    accountAddress: AccountAddress

    Account address associated with the account

    Public key associated with the account

    sign: (message: HexInput) => AbstractSignature

    Sign the given message using the available signing capabilities.

    Type declaration

    signingScheme: SingleKey = SigningScheme.SingleKey

    Signing scheme used to sign transactions

    • Verify the given message and signature with the public key. It fetches any on chain state if needed for verification.

      Parameters

      • args: { aptosConfig: AptosConfig; message: HexInput; signature: Signature }

        The arguments for verifying the signature.

        • aptosConfig: AptosConfig

          The configuration object for connecting to the Aptos network

        • message: HexInput

          Raw message data in HexInput format.

        • signature: Signature

          Signed message signature.

      Returns Promise<boolean>

      A boolean indicating whether the signature is valid.

    Constructors

    Methods

    • Compute the account address of the DAA The DAA account address is computed by hashing the function info and the account identity and appending the domain separator (5)

      Parameters

      • functionInfo: string

        The authentication function

      • accountIdentifier: Uint8Array

        The account identity

      Returns Uint8Array

      The account address

    Properties

    abstractPublicKey: Uint8Array

    The abstract public key that is used to identify the account. Depends on the use cases, most of the time it is the public key of the source wallet

    authenticationFunction: string
    ADDRESS_DOMAIN_SEPERATOR: number = 5

    The domain separator used to calculate the DAA account address.