Skip to content

Commit 103b8b2

Browse files
crypto/bn256: switch to gnark again (#32659)
We recently update our default implementation to gnark in #32024 Then we found a consensus issue and reverted it in 65d77c5 We fixed the consensus issue and have been fuzzing it more since then in https://github.com/ethereum/go-ethereum/pull/32055/files #32065 https://github.com/ethereum/go-ethereum/pull/32055/files So I think now is the time to update it back to gnark
1 parent 9b730e1 commit 103b8b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crypto/bn256/bn256_fast.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
package bn256
1010

1111
import (
12-
bn256cf "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
12+
gnark "github.com/ethereum/go-ethereum/crypto/bn256/gnark"
1313
)
1414

1515
// G1 is an abstract cyclic group. The zero value is suitable for use as the
1616
// output of an operation, but cannot be used as an input.
17-
type G1 = bn256cf.G1
17+
type G1 = gnark.G1
1818

1919
// G2 is an abstract cyclic group. The zero value is suitable for use as the
2020
// output of an operation, but cannot be used as an input.
21-
type G2 = bn256cf.G2
21+
type G2 = gnark.G2
2222

2323
// PairingCheck calculates the Optimal Ate pairing for a set of points.
2424
func PairingCheck(a []*G1, b []*G2) bool {
25-
return bn256cf.PairingCheck(a, b)
25+
return gnark.PairingCheck(a, b)
2626
}

0 commit comments

Comments
 (0)