mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Note that this *trivially* updates project urls by adding the NPM url to the end, even when the urls are almost identical or the DT one is outdated. I'll clean up the urls in a later commit. This PR is unfinished! Please do not merge it yet.
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
// Type definitions for bip39 2.4
|
|
// Project: https://github.com/bitcoinjs/bip39, https://github.com/weilu/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: Buffer | 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;
|