2018-09-24 16:07:14 -04:00
|
|
|
import { Arrayish } from './bytes';
|
|
|
|
import { Wordlist } from './wordlist';
|
2018-07-30 18:59:52 -04:00
|
|
|
export declare const defaultPath = "m/44'/60'/0'/0/0";
|
|
|
|
export declare class HDNode {
|
|
|
|
readonly privateKey: string;
|
|
|
|
readonly publicKey: string;
|
2019-02-01 19:50:10 -05:00
|
|
|
readonly fingerprint: string;
|
|
|
|
readonly parentFingerprint: string;
|
2018-10-07 01:13:10 -04:00
|
|
|
readonly address: string;
|
2018-07-30 18:59:52 -04:00
|
|
|
readonly mnemonic: string;
|
|
|
|
readonly path: string;
|
|
|
|
readonly chainCode: string;
|
|
|
|
readonly index: number;
|
|
|
|
readonly depth: number;
|
|
|
|
/**
|
|
|
|
* This constructor should not be called directly.
|
|
|
|
*
|
|
|
|
* Please use:
|
|
|
|
* - fromMnemonic
|
|
|
|
* - fromSeed
|
|
|
|
*/
|
2019-02-01 19:50:10 -05:00
|
|
|
constructor(constructorGuard: any, privateKey: string, publicKey: string, parentFingerprint: string, chainCode: string, index: number, depth: number, mnemonic: string, path: string);
|
|
|
|
readonly extendedKey: string;
|
|
|
|
neuter(): HDNode;
|
2018-07-30 18:59:52 -04:00
|
|
|
private _derive;
|
|
|
|
derivePath(path: string): HDNode;
|
|
|
|
static isHDNode(value: any): value is HDNode;
|
|
|
|
}
|
2019-02-01 19:50:10 -05:00
|
|
|
export declare function fromExtendedKey(extendedKey: string): HDNode;
|
|
|
|
export declare function fromMnemonic(mnemonic: string, wordlist?: Wordlist, password?: string): HDNode;
|
2018-07-30 18:59:52 -04:00
|
|
|
export declare function fromSeed(seed: Arrayish): HDNode;
|
|
|
|
export declare function mnemonicToSeed(mnemonic: string, password?: string): string;
|
|
|
|
export declare function mnemonicToEntropy(mnemonic: string, wordlist?: Wordlist): string;
|
|
|
|
export declare function entropyToMnemonic(entropy: Arrayish, wordlist?: Wordlist): string;
|
|
|
|
export declare function isValidMnemonic(mnemonic: string, wordlist?: Wordlist): boolean;
|