From 25a91ca000672435d143f6517860f486caf51e51 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 11 Nov 2024 01:58:23 -0800 Subject: [PATCH] Fix invalid index size. --- src/lib/ckd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ckd.ts b/src/lib/ckd.ts index f7e2d05..615774e 100644 --- a/src/lib/ckd.ts +++ b/src/lib/ckd.ts @@ -51,7 +51,7 @@ async function ckdBip44 (seed: string, index: number): Promise { * @returns {Promise} */ async function ckdBlake2b (seed: string, index: number): Promise { - const hash = await Tools.blake2b([seed, dec.toHex(index, 4)]) + const hash = await Tools.blake2b([seed, dec.toHex(index, 8)]) const key = bytes.toHex(hash) return await Account.fromPrivateKey(key, index) } -- 2.34.1