Skip to content

Commit

Permalink
perf(emulated): save 1 add in scalarMulGLV
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhousni committed Feb 22, 2024
1 parent 16990de commit da9513e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algebra/emulated/sw_emulated/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func (c *Curve[B, S]) scalarMulGLV(Q *AffinePoint[B], s *emulated.Element[S], op
T12 := c.Add(tablePhiQ[0], tableQ[1])
// T = [3]Φ(Q) - Q
// P = B4 and P' = B1
T13 := c.Add(tablePhiQ[2], tableQ[0])
T13 := c.Neg(T10)
// T = Φ(Q) - [3]Q
// P = B4 and P' = B2
T14 := c.Neg(T9)
Expand Down

0 comments on commit da9513e

Please sign in to comment.