diff --git a/ecc/bn254/bn254.go b/ecc/bn254/bn254.go index 602a1c7acd..f6f2990ca3 100644 --- a/ecc/bn254/bn254.go +++ b/ecc/bn254/bn254.go @@ -100,6 +100,17 @@ var endo struct { // seed x₀ of the curve var xGen big.Int +// expose the tower -- github.com/consensys/gnark uses it in a gnark circuit + +// 𝔽p² +type E2 = fptower.E2 + +// 𝔽p⁶ +type E6 = fptower.E6 + +// 𝔽p¹² +type E12 = fptower.E12 + func init() { aCurveCoeff.SetUint64(0) bCurveCoeff.SetUint64(3)