@aptos-labs/ts-sdk - v5.1.4
    Preparing search index...

    Class MultiEd25519Account

    Signer implementation for the Multi-Ed25519 authentication scheme.

    Note: This authentication scheme is a legacy authentication scheme. Prefer using MultiKeyAccounts as a MultiKeyAccount can support any type of signer, not just Ed25519. Generating a signer instance does not create the account on-chain.

    Implements

    Index

    Implementation - Account (On-Chain Model)

    accountAddress: AccountAddress

    Account address associated with the account

    Public key associated with the account

    signerIndices: number[]

    An array of indices where for signer[i], signerIndicies[i] is the index of the corresponding public key in publicKey.publicKeys. Used to derive the right public key to use for verification.

    The signers used to sign messages. These signers should correspond to public keys in the MultiEd25519Account. The number of signers should be equal to this.publicKey.threshold.

    signingScheme: MultiEd25519 = SigningScheme.MultiEd25519

    Signing scheme used to sign transactions

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

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

      Parameters

      • args: {
            aptosConfig: AptosConfig;
            message: HexInput;
            options?: { throwErrorWithReason?: boolean };
            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.

        • Optionaloptions?: { throwErrorWithReason?: boolean }
        • signature: Signature

          Signed message signature.

      Returns Promise<boolean>

      A boolean indicating whether the signature is valid.

    Constructors

    Methods

    Properties

    signaturesBitmap: Uint8Array