Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyChain

Hierarchy

  • KeyChain

Index

Constructors

Methods

  • EditWallet<T>(__namedParameters: { colorIndex: number; name: string; walletId: string }): Promise<void>
  • Type Parameters

    • T extends string

    Parameters

    • __namedParameters: { colorIndex: number; name: string; walletId: string }
      • colorIndex: number
      • name: string
      • walletId: string

    Returns Promise<void>

  • createNewWalletAccount<T>(name: string, password: string, colorIndex: number, chainInfos: ChainInfo[]): Promise<Key<T>>
  • decrypt(password: string): Promise<void>
  • encrypt<T>(password: string): Promise<void>
  • getAllWallets<T>(): Promise<Keystore<T>>
  • getSigner<T>(walletId: string, password: string, __namedParameters: { addressPrefix: string; coinType: string; ethWallet?: boolean; pubKeyBech32Address?: boolean }): Promise<EthWallet | Wallet | PvtKeyWallet>
  • Type Parameters

    • T extends string

    Parameters

    • walletId: string
    • password: string
    • __namedParameters: { addressPrefix: string; coinType: string; ethWallet?: boolean; pubKeyBech32Address?: boolean }
      • addressPrefix: string
      • coinType: string
      • Optional ethWallet?: boolean
      • Optional pubKeyBech32Address?: boolean

    Returns Promise<EthWallet | Wallet | PvtKeyWallet>

  • getWalletsFromMnemonic(mnemonic: string, count: number, coinType: string, addressPrefix: string): Promise<{ address: string; index: number; pubkey: null | Uint8Array }[]>
  • Parameters

    • mnemonic: string
    • count: number
    • coinType: string
    • addressPrefix: string

    Returns Promise<{ address: string; index: number; pubkey: null | Uint8Array }[]>

  • importNewWallet<T>(privateKey: string, password: string, chainInfos: ChainInfo[], addressIndex?: number, name?: string): Promise<Key<T>>
  • Type Parameters

    • T extends string

    Parameters

    • privateKey: string
    • password: string
    • chainInfos: ChainInfo[]
    • Optional addressIndex: number
    • Optional name: string

    Returns Promise<Key<T>>

  • removeWallets<T>(keyIds: string[]): Promise<void>