Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/seedutil"

Index

Variables

Const exec

exec: __promisify__ = promisify(childProcessExec)

A promisified wrapped for the NodeJS child_process.exec method.

Const seedutilPath

seedutilPath: string = path.join(__dirname, '..', '..', 'seedutil', 'seedutil')

Functions

decipher

  • decipher(mnemonic: string[]): Promise<Buffer>

deriveChild

  • deriveChild(mnemonic: string[], clientType: string): Promise<string[]>

encipher

  • encipher(decipheredSeedHex: string): Promise<string[]>
  • Executes the seedutil tool to encipher a deciphered seed hex string into a mnemonic

    Parameters

    • decipheredSeedHex: string

      the deciphered seed in hex format

    Returns Promise<string[]>

generate

  • generate(): Promise<string[]>

keystore

  • keystore(mnemonic: string[], password: string, pathVal: string): Promise<void>
  • Executes the seedutil tool to generate an ethereum keystore from the given mnemonic and password at the specified path.

    Parameters

    • mnemonic: string[]

      the 24 seed recovery mnemonic

    • password: string

      the password to protect the keystore

    • pathVal: string

      the path in which to create the keystore directory

    Returns Promise<void>

Generated using TypeDoc