paulmillr / noble-curves

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

When using endomorphism, should jacobi first be converted to affine? #69

Closed JiaqiBLSM closed 11 months ago

JiaqiBLSM commented 11 months ago

$\lambda P = (\beta x \bmod p, y)$. But the endomorphism I saw in the Blog is: k2p = new JacobianPoint(mod(k2p.x * CURVE.beta), k2p.y, k2p.z);

paulmillr commented 11 months ago

No, it works fine in jacobi, all tests pass correctly.