Closed mirceanis closed 1 year ago
@paulmillr Please, do you mind releasing the fix?
@ukstv I plan to do the release schedule for non-security bugfixes once per month or so;
For now please use npm i github:paulmillr/noble-curves or so.
@paulmillr Aah, okay. Will wait for the next release then.
The function
edwardsToMontgomery
doesn't seem to be correctly implemented. There is a formula stated in the TSDoc(1+y)/(1-y)
but the implementation uses a different formula(y-1)/(y+1)
).Indeed, when comparing outputs to what would be the equivalent code from
@stablelib/ed25519
we get different results.Here's an example test:
Test vectors were computed using @stablelib/ed25519:
PS. I already have a fix and will make a PR soon.