Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/key"

Index

Type aliases

RNG

RNG: function

Type declaration

    • <T>(array: T): T
    • Type parameters

      • T: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null

      Parameters

      • array: T

      Returns T

Functions

generateSeed

  • generateSeed(rng: RNG, strength?: number): string
  • Parameters

    • rng: RNG
    • Default value strength: number = 128

    Returns string

generateWallet

  • generateWallet(rng: RNG, path?: string, password?: string, strength?: number): object
  • Parameters

    • rng: RNG
    • Default value path: string = `m/44'/118'/0'/0/0`
    • Default value password: string = ""
    • Default value strength: number = 256

    Returns object

generateWalletFromMnemonic

  • generateWalletFromMnemonic(mnemonic: string, path?: string, password?: string): PrivKey
  • Parameters

    • mnemonic: string
    • Default value path: string = `m/44'/118'/0'/0/0`
    • Default value password: string = ""

    Returns PrivKey

Generated using TypeDoc