]> git.codecow.com Git - libnemo.git/commitdiff
Fix old BIP-39 nomenclature.
authorChris Duncan <chris@zoso.dev>
Sat, 9 Aug 2025 06:29:02 +0000 (23:29 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 9 Aug 2025 06:29:02 +0000 (23:29 -0700)
src/lib/crypto/bip39.ts
src/types.d.ts

index 3ae1261069547fc3ff6b0a6b51c1092d9161fe54..f30120b01cf21c7b69f70cf3569ca71ea5c5379c 100644 (file)
@@ -153,7 +153,7 @@ export class Bip39 {
 \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
index 1d74a678a4c51cb20440f8a316bcb42451641045..c71f9c263909c254f90b53deb11e0e799552cbd4 100644 (file)
@@ -123,7 +123,7 @@ export declare class AccountList extends Object {
 /**
 * 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.
@@ -135,7 +135,7 @@ export declare class Bip39Mnemonic {
        * @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.
        *
@@ -145,7 +145,7 @@ export declare class Bip39Mnemonic {
        * @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.
        *