From: Chris Duncan Date: Thu, 4 Dec 2025 17:30:26 +0000 (-0800) Subject: Formatting. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=cce9ee94b873ef5eea09dc77b31d35c40ad83e5e;p=libnemo.git Formatting. --- 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 }