From 9e21dacfad322ff48a7587bc72f9d5c8399286de Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 15 May 2026 01:15:33 -0700 Subject: [PATCH] Fix variable name conflict. --- src/lib/crypto/bip44.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/crypto/bip44.ts b/src/lib/crypto/bip44.ts index 2b27e0e..929badc 100644 --- a/src/lib/crypto/bip44.ts +++ b/src/lib/crypto/bip44.ts @@ -117,11 +117,11 @@ function childKey (curve: Curve, pk: Bytes, I: ArrayBuffer): ExtendedKey { throw new Error('Invalid child key is greater than the order of the curve') } const pkParsed = parse256(pk) - const childKey = (ILparsed + pkParsed) % Point.CURVE().n - if (childKey === 0n) { + const ck = (ILparsed + pkParsed) % Point.CURVE().n + if (ck === 0n) { throw new Error('Invalid child key is zero') } - return ({ privateKey: ser256(childKey).buffer, chainCode: IR }) + return ({ privateKey: ser256(ck).buffer, chainCode: IR }) } function ser32 (integer: number): Bytes { -- 2.47.3