paulmillr / noble-curves

Audited & minimal JS implementation of elliptic curve cryptography.
https://paulmillr.com/noble
MIT License
621 stars 56 forks source link

Fp2.eql #104

Closed vincenzoiovino closed 6 months ago

vincenzoiovino commented 6 months ago

Hello, first of all thanks for this nice library. I tried to use Fp2.eql but does not work. I use version 1.2.0. It always returns true even if the points are different. Currently I need to use .toHex() and then compare them as strings.

Any clue on whether this is a bug or a misunderstanding/misuse of the library of mine?

paulmillr commented 6 months ago
> Fp2.eql(Fp2.ZERO, Fp2.ONE)
false