Skip to content

Commit

Permalink
feat: disable GLV mul in bandersnatch until #268 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Mar 24, 2022
1 parent da77bc5 commit 6455247
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions std/algebra/twistededwards/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ func (c *curve) AssertIsOnCurve(p1 Point) {
func (c *curve) ScalarMul(p1 Point, scalar frontend.Variable) Point {
var p Point
if c.endo != nil {
// scalar mul glv
p.scalarMulGLV(c.api, &p1, scalar, c.params, c.endo)
// TODO restore
// this is disabled until this issue is solved https://github.com/ConsenSys/gnark/issues/268
// p.scalarMulGLV(c.api, &p1, scalar, c.params, c.endo)
p.scalarMul(c.api, &p1, scalar, c.params)
} else {
p.scalarMul(c.api, &p1, scalar, c.params)
}
Expand Down

0 comments on commit 6455247

Please sign in to comment.