From cce9ee94b873ef5eea09dc77b31d35c40ad83e5e Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 4 Dec 2025 09:30:26 -0800 Subject: [PATCH] Formatting. --- src/lib/crypto/secp256k1.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/crypto/secp256k1.ts b/src/lib/crypto/secp256k1.ts index 2451df6..1131945 100644 --- a/src/lib/crypto/secp256k1.ts +++ b/src/lib/crypto/secp256k1.ts @@ -373,9 +373,8 @@ export class Secp256k1 { } } - // ## Precomputes - // -------------- - + /** Precomputes */ + static Gpows: Point[] | undefined = undefined // precomputes for base point G static W = 8 // W is window size static scalarBits = 256 static pwindows = Math.ceil(this.scalarBits / this.W) + 1 // 33 for W=8, NOT 32 - see wNAF loop @@ -395,9 +394,8 @@ export class Secp256k1 { } return points } - static Gpows: Point[] | undefined = undefined // precomputes for base point G // const-time negate - static ctneg (cnd: boolean, p: Point) { + static ctneg (cnd: boolean, p: Point): Point { const n = p.negate() return cnd ? n : p } -- 2.47.3