A class of Signer interface for AIN Wallet chrome extension (https://chrome.google.com/webstore/detail/ain-wallet/hbdheoebpgogdkagfojahleegjfkhkpl).

Implements

Constructors

Properties

ainetwork: Signer

The Ain Wallet object.

Methods

  • Gets an account's checksum address. If the address is not given, the default account of the Ain Wallet is used.

    Parameters

    • Optional address: string

      The address of the account.

    Returns string

    The checksum address.

  • Signs a message using an account. If an address is not given, the default account of the Ain Wallet is used.

    Parameters

    • message: any

      The message to sign.

    • Optional address: string

      The address of the account.

    Returns string | Promise<string>

    The signature.