DefinitelyTyped/types/bip39/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
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.
2019-02-11 17:10:55 -08:00

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;