]> git.codecow.com Git - libnemo.git/commitdiff
Extract single-use variable.
authorChris Duncan <chris@zoso.dev>
Fri, 5 Dec 2025 18:21:06 +0000 (10:21 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 5 Dec 2025 18:21:06 +0000 (10:21 -0800)
src/lib/crypto/secp256k1.ts

index 30a79616a3a27530c9ea4d298982b0faaebce956..db1693bff2bdfc2ee7bae6cec2d94cbc117f19ba 100644 (file)
@@ -194,8 +194,7 @@ export class Secp256k1 {
                                const { X: X1, Y: Y1, Z: Z1 } = { X, Y, Z }
                                const { X: X2, Y: Y2, Z: Z2 } = other
                                const a = 0n
-                               const b = secp256k1.b
-                               const b3 = M(b * 3n)
+                               const b3 = M(secp256k1.b * 3n)
                                let X3 = 0n, Y3 = 0n, Z3 = 0n
                                let t0 = M(X1 * X2) // step 1
                                let t1 = M(Y1 * Y2)