@conflux-dev/hdwallet
Version:
TypeScript Conflux Software Development Kit
16 lines (15 loc) • 555 B
TypeScript
/// <reference types="node" />
import HDNode from "hdkey";
export declare class HDWallet {
static defaultBasePath: string;
mnemonic: string;
password?: string;
seed: Buffer;
rootNode: HDNode;
static generateMnemonic(): string;
static validateMnemonic(mnemonic: string, wordlist?: string[]): boolean;
static mnemonicToSeed(mnemonic: string, password?: string): Promise<Buffer>;
constructor(mnemonic: string, password?: string);
getPrivateKey(path: string): Buffer;
getPrivateKeyByIndex(index: number): Buffer;
}