Skip to content

Commit

Permalink
fix typo in sign of twisted add
Browse files Browse the repository at this point in the history
  • Loading branch information
querolita committed Dec 11, 2024
1 parent df65376 commit 66d49ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/elliptic-curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ function twistedAdd(
let ax1x2 = mod(a * x1x2, p);

let x3Num = mod(x1y2 + y1x2, p);
let y3Num = mod(y1y2 + ax1x2, p);
let y3Num = mod(y1y2 - ax1x2, p);

let dx1x2y1y2 = mod(d * x1x2 * y1y2, p);

Expand Down

0 comments on commit 66d49ca

Please sign in to comment.