From 43dbecd7dac6a6169118c508db8d01f23b659b98 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 3 Dec 2025 06:16:25 -0800 Subject: [PATCH] Remove unused affine point coordinate helpers. --- src/lib/crypto/secp256k1.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lib/crypto/secp256k1.ts b/src/lib/crypto/secp256k1.ts index 64c83c2..cf35dc0 100644 --- a/src/lib/crypto/secp256k1.ts +++ b/src/lib/crypto/secp256k1.ts @@ -15,8 +15,6 @@ type Point = { X: bigint Y: bigint Z: bigint - get x (): bigint - get y (): bigint equals: (other: Point) => boolean negate: () => Point double: () => Point @@ -277,12 +275,6 @@ export class Secp256k1 { X: this.FpIsValid(X), Y: this.FpIsValidNot0(Y), // Y can't be 0 in Projective Z: this.FpIsValid(Z), - get x (): bigint { - return this.toAffine().x - }, - get y (): bigint { - return this.toAffine().y - }, /** Equality check: compare points P&Q. */ equals (other: Point): boolean { const { X: X1, Y: Y1, Z: Z1 } = this -- 2.47.3