File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import (
26
26
"io"
27
27
"math/big"
28
28
29
+ "github.com/consensys/gnark-crypto/ecc"
29
30
gnark "github.com/consensys/gnark-crypto/ecc/bls12-381"
30
31
"github.com/consensys/gnark-crypto/ecc/bls12-381/fp"
31
32
"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
@@ -198,7 +199,7 @@ func FuzzCrossG1MultiExp(data []byte) int {
198
199
}
199
200
gethScalars = append (gethScalars , s )
200
201
var gnarkScalar = & fr.Element {}
201
- gnarkScalar = gnarkScalar .SetBigInt (s ). FromMont ()
202
+ gnarkScalar = gnarkScalar .SetBigInt (s )
202
203
gnarkScalars = append (gnarkScalars , * gnarkScalar )
203
204
204
205
gethPoints = append (gethPoints , new (bls12381.PointG1 ).Set (kp1 ))
@@ -217,7 +218,7 @@ func FuzzCrossG1MultiExp(data []byte) int {
217
218
218
219
// gnark multi exp
219
220
cp := new (gnark.G1Affine )
220
- cp .MultiExp (gnarkPoints , gnarkScalars )
221
+ cp .MultiExp (gnarkPoints , gnarkScalars , ecc. MultiExpConfig {} )
221
222
222
223
// compare result
223
224
if ! (bytes .Equal (cp .Marshal (), g1 .ToBytes (& kp ))) {
You can’t perform that action at this time.
0 commit comments