\r
private constructor () {\r
if (!Bip39.#isInternal) {\r
- throw new Error(`Bip39Mnemonic must be created with async methods 'fromPhrase()' or 'fromEntropy().`)\r
+ throw new Error(`Bip39 must be created with async methods 'fromPhrase()' or 'fromEntropy().`)\r
}\r
Bip39.#isInternal = false\r
}\r
/**
* Represents a mnemonic phrase that identifies a wallet as defined by BIP-39.
*/
-export declare class Bip39Mnemonic {
+export declare class Bip39 {
#private
/**
* Derives a mnemonic phrase from source of entropy or seed.
* @param {(string|ArrayBuffer|Uint8Array<ArrayBuffer>)} entropy - Cryptographically secure random value
* @returns {string} Mnemonic phrase created using the BIP-39 wordlist
*/
- static fromEntropy (entropy: string | ArrayBuffer | Uint8Array<ArrayBuffer>): Promise<Bip39Mnemonic>
+ static fromEntropy (entropy: string | ArrayBuffer | Uint8Array<ArrayBuffer>): Promise<Bip39>
/**
* Imports and validates an existing mnemonic phrase.
*
* @param {string} phrase - String of 12, 15, 18, 21, or 24 words
* @returns {string} Mnemonic phrase validated using the BIP-39 wordlist
*/
- static fromPhrase (phrase: string): Promise<Bip39Mnemonic>
+ static fromPhrase (phrase: string): Promise<Bip39>
/**
* Validates a mnemonic phrase meets the BIP-39 specification.
*