Represents an Ed25519 account that provides signing capabilities through an Ed25519 private key. This class allows for the creation of accounts, signing messages and transactions, and verifying signatures.

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

Implements

Implementation - Account (On-Chain Model)

accountAddress: AccountAddress

Account address associated with the account

privateKey: Ed25519PrivateKey

Private key associated with the account

publicKey: Ed25519PublicKey

Public key associated with the account

signingScheme: Ed25519 = SigningScheme.Ed25519

Signing scheme used to sign transactions

  • Verify the given message and signature with the public key.

    Ed25519 signatures do not depend on chain state, so this function is equivalent to the synchronous verifySignature method.

    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.

MMNEPVFCICPMFPCPTTAAATR