]> git.codecow.com Git - libnemo.git/commitdiff
Specify buffer type and use shorter type alias.
authorChris Duncan <chris@zoso.dev>
Sat, 26 Jul 2025 07:43:24 +0000 (00:43 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 26 Jul 2025 07:43:24 +0000 (00:43 -0700)
src/lib/wallets/bip44-wallet.ts

index 0a3056dbe06e05d5136a8935a67bb46f68d6a68f..3d49ed79c219862f6b52c348569d76cceebd1e01 100644 (file)
@@ -59,8 +59,8 @@ export class Bip44Wallet extends Wallet {
        * @param {string} [salt=''] - Used when generating the final seed\r
        * @returns {Bip44Wallet} A newly instantiated Bip44Wallet\r
        */\r
-       static async create (key: Uint8Array, salt?: string): Promise<Bip44Wallet>\r
-       static async create (passkey: string | Uint8Array, salt: string = ''): Promise<Bip44Wallet> {\r
+       static async create (key: Uint8Array<ArrayBuffer>, salt?: string): Promise<Bip44Wallet>\r
+       static async create (passkey: Key, salt: string = ''): Promise<Bip44Wallet> {\r
                try {\r
                        const e = await Entropy.create()\r
                        return await Bip44Wallet.fromEntropy(passkey as string, e.hex, salt)\r