mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
[bip39] Add Buffer as valid argument for entropyToMnemonic
The function accepts either string or buffer.
This commit is contained in:
Vendored
+1
-1
@@ -17,7 +17,7 @@ export const wordlists: {
|
||||
spanish: string[];
|
||||
};
|
||||
|
||||
export function entropyToMnemonic(entropyHex: string, wordlist?: string[]): string;
|
||||
export function entropyToMnemonic(entropyHex: Buffer | string, wordlist?: string[]): string;
|
||||
|
||||
export function generateMnemonic(strength?: number, rng?: (size: number) => Buffer, wordlist?: string[]): string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user