Interface KeylessSigner

An interface which defines if an Account utilizes Keyless signing.

interface KeylessSigner {
    accountAddress: AccountAddress;
    publicKey: AccountPublicKey;
    signingScheme: SigningScheme;
    checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
    sign(message: HexInput): Signature;
    signTransaction(transaction: AnyRawTransaction): Signature;
    signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticator;
    signWithAuthenticator(message: HexInput): AccountAuthenticator;
    verifySignature(args: VerifySignatureArgs): boolean;
}

Hierarchy (view full)

Implemented by

Methods

  • 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.

    Parameters

    Returns boolean

    A boolean indicating whether the signature is valid.

Properties

accountAddress: AccountAddress

Account address associated with the account

publicKey: AccountPublicKey

Public key associated with the account

signingScheme: SigningScheme

Signing scheme used to sign transactions