From: Chris Duncan Date: Wed, 3 Dec 2025 14:16:25 +0000 (-0800) Subject: Remove unused affine point coordinate helpers. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=43dbecd7dac6a6169118c508db8d01f23b659b98;p=libnemo.git Remove unused affine point coordinate helpers. --- 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