Skip to content

Commit

Permalink
Remove unnecesary check for g2 coodinates conversion (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla authored Apr 19, 2024
1 parent 89430dc commit 314a7d9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions precompiles/EcPairing.yul
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,6 @@ object "EcPairing" {
yr1 := yp1
zr0 := MONTGOMERY_ONE()
zr1 := 0
if and(eq(xp0, 0), eq(xp1, 0)) {
if and(eq(yp0, 0), eq(yp1, 0)) {
xr0 := MONTGOMERY_ONE()
// xr1 is already 0
yr0 := MONTGOMERY_ONE()
// yr1 is already 0
zr0 := 0
// zr1 is already 0
}
}
}

/// @notice Checks if a G2 point in affine coordinates is the point at infinity.
Expand Down

0 comments on commit 314a7d9

Please sign in to comment.