From 2edd9cee60c5f7491d4b947a5d0ca63b23ada34a Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 26 Jul 2025 00:43:24 -0700 Subject: [PATCH] Specify buffer type and use shorter type alias. --- src/lib/wallets/bip44-wallet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/wallets/bip44-wallet.ts b/src/lib/wallets/bip44-wallet.ts index 0a3056d..3d49ed7 100644 --- a/src/lib/wallets/bip44-wallet.ts +++ b/src/lib/wallets/bip44-wallet.ts @@ -59,8 +59,8 @@ export class Bip44Wallet extends Wallet { * @param {string} [salt=''] - Used when generating the final seed * @returns {Bip44Wallet} A newly instantiated Bip44Wallet */ - static async create (key: Uint8Array, salt?: string): Promise - static async create (passkey: string | Uint8Array, salt: string = ''): Promise { + static async create (key: Uint8Array, salt?: string): Promise + static async create (passkey: Key, salt: string = ''): Promise { try { const e = await Entropy.create() return await Bip44Wallet.fromEntropy(passkey as string, e.hex, salt) -- 2.47.3