Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AionKeystoreClient

Aion keystore client that implements IsingleKeystoreClient interface

Hierarchy

  • AionKeystoreClient

Implements

Index

Properties

ledgerSupport

ledgerSupport: boolean = true

Methods

generateMnemonic

  • generateMnemonic(): string

getAccountFromHardware

getAccountFromMnemonic

  • getAccountFromMnemonic(address_index: number, mnemonic: string): Promise<object>

recoverKeyPairByKeyFile

  • recoverKeyPairByKeyFile(file: string, password: string): Promise<unknown>
  • Recover key pair by key file

    Parameters

    • file: string

      file content

    • password: string

      protection password

    Returns Promise<unknown>

    key pair object: { private_key: '', public_key: '', address: '' }

recoverKeyPairByPrivateKey

  • recoverKeyPairByPrivateKey(priKey: string): Promise<object>
  • Recover key pair by private key

    Parameters

    • priKey: string

    Returns Promise<object>

    key pair object: { private_key: '', public_key: '', address: '' }

signTransaction

  • signTransaction<T>(tx: AionUnsignedTx, signer: T, signerParams: any): Promise<any>

validateAddress

  • validateAddress(address: string): boolean

validatePrivateKey

  • validatePrivateKey(privateKey: string | Buffer): any