Skip to content

Commit

Permalink
Removes unnecessary handling of a special case on addition. (#77)
Browse files Browse the repository at this point in the history
* removes unecesary check

* resolve confilct
  • Loading branch information
ColoCarletti authored Sep 18, 2023
1 parent 56e342d commit 2c1d38d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions precompiles/EcMul.yul
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,6 @@ object "EcMul" {
continue
}

if and(and(eq(xr, xq), eq(montgomerySub(0, yr), yq)), eq(zr, zq)) {
// P + (-P) = Infinity
xr := 0
yr := 0
zr := 0

xq, yq, zq := projectiveDouble(xq, yq, zq)
// Check next bit
scalar := shr(1, scalar)
continue
}

let t0 := montgomeryMul(yq, zr)
let t1 := montgomeryMul(yr, zq)
let t := montgomerySub(t0, t1)
Expand Down

0 comments on commit 2c1d38d

Please sign in to comment.