xud
Version:
Exchange Union Daemon
19 lines (18 loc) • 931 B
TypeScript
/// <reference types="node" />
/**
* Executes the seedutil tool to generate an ethereum keystore from the given
* mnemonic and password at the specified path.
* @param mnemonic the 24 seed recovery mnemonic
* @param password the password to protect the keystore
* @param pathVal the path in which to create the keystore directory
*/
declare function keystore(mnemonic: string[], password: string, pathVal: string): Promise<void>;
/**
* Executes the seedutil tool to encipher a deciphered seed hex string into a mnemonic
* @param decipheredSeedHex the deciphered seed in hex format
*/
declare function encipher(decipheredSeedHex: string): Promise<string[]>;
declare function decipher(mnemonic: string[]): Promise<Buffer>;
declare function deriveChild(mnemonic: string[], clientType: string): Promise<string[]>;
declare function generate(): Promise<string[]>;
export { keystore, encipher, decipher, deriveChild, generate };