@@ -16,6 +16,7 @@ import (
1616
1717 "github.com/consensys/gnark-crypto/ecc"
1818 "github.com/consensys/gnark-crypto/kzg"
19+ gcutils "github.com/consensys/gnark-crypto/utils"
1920 "github.com/consensys/gnark/constraint"
2021 "github.com/consensys/gnark/internal/utils"
2122 "github.com/consensys/gnark/logger"
@@ -209,7 +210,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
209210 // do a fft on this.
210211 d := fft_bn254 .NewDomain (size )
211212 d .FFTInverse (pAlpha , fft_bn254 .DIF )
212- fft_bn254 .BitReverse (pAlpha )
213+ gcutils .BitReverse (pAlpha )
213214
214215 // bath scalar mul
215216 _ , _ , g1gen , _ := bn254 .Generators ()
@@ -231,7 +232,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
231232 // do a fft on this.
232233 d := fft_bls12381 .NewDomain (size )
233234 d .FFTInverse (pAlpha , fft_bls12381 .DIF )
234- fft_bls12381 .BitReverse (pAlpha )
235+ gcutils .BitReverse (pAlpha )
235236
236237 // bath scalar mul
237238 _ , _ , g1gen , _ := bls12381 .Generators ()
@@ -253,7 +254,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
253254 // do a fft on this.
254255 d := fft_bls12377 .NewDomain (size )
255256 d .FFTInverse (pAlpha , fft_bls12377 .DIF )
256- fft_bls12377 .BitReverse (pAlpha )
257+ gcutils .BitReverse (pAlpha )
257258
258259 // bath scalar mul
259260 _ , _ , g1gen , _ := bls12377 .Generators ()
@@ -276,7 +277,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
276277 // do a fft on this.
277278 d := fft_bw6761 .NewDomain (size )
278279 d .FFTInverse (pAlpha , fft_bw6761 .DIF )
279- fft_bw6761 .BitReverse (pAlpha )
280+ gcutils .BitReverse (pAlpha )
280281
281282 // bath scalar mul
282283 _ , _ , g1gen , _ := bw6761 .Generators ()
@@ -299,7 +300,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
299300 // do a fft on this.
300301 d := fft_bls24317 .NewDomain (size )
301302 d .FFTInverse (pAlpha , fft_bls24317 .DIF )
302- fft_bls24317 .BitReverse (pAlpha )
303+ gcutils .BitReverse (pAlpha )
303304
304305 // bath scalar mul
305306 _ , _ , g1gen , _ := bls24317 .Generators ()
@@ -322,7 +323,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
322323 // do a fft on this.
323324 d := fft_bls24315 .NewDomain (size )
324325 d .FFTInverse (pAlpha , fft_bls24315 .DIF )
325- fft_bls24315 .BitReverse (pAlpha )
326+ gcutils .BitReverse (pAlpha )
326327
327328 // bath scalar mul
328329 _ , _ , g1gen , _ := bls24315 .Generators ()
@@ -345,7 +346,7 @@ func toLagrange(canonicalSRS kzg.SRS, tau *big.Int) kzg.SRS {
345346 // do a fft on this.
346347 d := fft_bw6633 .NewDomain (size )
347348 d .FFTInverse (pAlpha , fft_bw6633 .DIF )
348- fft_bw6633 .BitReverse (pAlpha )
349+ gcutils .BitReverse (pAlpha )
349350
350351 // bath scalar mul
351352 _ , _ , g1gen , _ := bw6633 .Generators ()
0 commit comments