]> git.codecow.com Git - libnemo.git/commitdiff
Fix variable name conflict.
authorChris Duncan <chris@codecow.com>
Fri, 15 May 2026 08:15:33 +0000 (01:15 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 15 May 2026 08:15:33 +0000 (01:15 -0700)
src/lib/crypto/bip44.ts

index 2b27e0e400f6fc3050a47fd2379ed2ad9cfd2902..929badc91b0a5694c53b24dabe321227c90ce40f 100644 (file)
@@ -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 {