]> git.codecow.com Git - libnemo.git/commitdiff
Remove unused affine point coordinate helpers.
authorChris Duncan <chris@zoso.dev>
Wed, 3 Dec 2025 14:16:25 +0000 (06:16 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 3 Dec 2025 14:16:25 +0000 (06:16 -0800)
src/lib/crypto/secp256k1.ts

index 64c83c2a6e471fb5eb39b71db54c318a9d72429b..cf35dc0d37f4af15ddf7c9cff9049e86d97967ce 100644 (file)
@@ -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