mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-08 08:04:19 +08:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
// Type definitions for bip39 2.4
|
|
// Project: https://github.com/bitcoinjs/bip39
|
|
// Definitions by: Satana Charuwichitratana <https://github.com/micksatana>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export const wordlists: {
|
|
EN: string[];
|
|
JA: string[];
|
|
chinese_simplified: string[];
|
|
chinese_traditional: string[];
|
|
english: string[];
|
|
french: string[];
|
|
italian: string[];
|
|
japanese: string[];
|
|
spanish: string[];
|
|
};
|
|
|
|
export function entropyToMnemonic(entropyHex: string, wordlist?: string[]): string;
|
|
|
|
export function generateMnemonic(strength?: number, rng?: (size: number) => Buffer, wordlist?: string[]): string;
|
|
|
|
export function mnemonicToEntropy(mnemonic: string, wordlist?: string[]): string;
|
|
|
|
export function mnemonicToSeed(mnemonic: string, password?: string): Buffer;
|
|
|
|
export function mnemonicToSeedHex(mnemonic: string, password?: string): string;
|
|
|
|
export function validateMnemonic(mnemonic: string, wordlist?: string[]): boolean;
|