Skip to content

Commit

Permalink
Remove redundant check in projectiveAdd (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri authored Nov 7, 2023
1 parent 382e2c1 commit 6ba64df
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions precompiles/P256VERIFY.yul
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,6 @@ object "P256VERIFY" {
function projectiveAdd(xp, yp, zp, xq, yq, zq) -> xr, yr, zr {
let qIsInfinity := projectivePointIsInfinity(xq, yq, zq)
let pIsInfinity := projectivePointIsInfinity(xp, yp, zp)
if and(pIsInfinity, qIsInfinity) {
// Infinity + Infinity = Infinity
xr := 0
yr := MONTGOMERY_ONE_P()
zr := 0
leave
}
if pIsInfinity {
// Infinity + Q = Q
xr := xq
Expand Down

0 comments on commit 6ba64df

Please sign in to comment.