aegis/lib/dgb/core/hd.d.ts

9 lines
530 B
TypeScript
Raw Normal View History

import { type BIP32Interface } from 'bip32';
import { type Network } from './network.js';
export type Purpose = 44 | 49 | 84 | 86;
export declare const PURPOSE_LABEL: Record<Purpose, string>;
export declare function rootFromSeed(seed: Buffer, network?: Network): BIP32Interface;
export declare function accountNode(root: BIP32Interface, purpose: Purpose, account?: number): BIP32Interface;
export declare function addressNode(account: BIP32Interface, change: 0 | 1, index: number): BIP32Interface;
export type { BIP32Interface };