Skip to content

Commit

Permalink
Merge pull request #360 from ConsenSys/bls12381-tower-gnark
Browse files Browse the repository at this point in the history
Expose BLS12-381 tower
  • Loading branch information
yelhousni committed Mar 20, 2023
2 parents 74285bd + 2b4a84b commit ffa6f50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ecc/bls12-381/bls12-381.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ var endo struct {
// seed x₀ of the curve
var xGen big.Int

// 𝔽p²
type E2 = fptower.E2

// 𝔽p⁶
type E6 = fptower.E6

// 𝔽p¹²
type E12 = fptower.E12

func init() {
aCurveCoeff.SetUint64(0)
bCurveCoeff.SetUint64(4)
Expand Down

0 comments on commit ffa6f50

Please sign in to comment.