UNPKG

@conflux-dev/hdwallet

Version:
16 lines (15 loc) 555 B
/// <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; }