formatting

This commit is contained in:
Kevaundray Wedderburn 2024-10-14 19:53:57 +01:00
parent dbf770342a
commit 9eb68f23eb
2 changed files with 0 additions and 2 deletions

View file

@ -22,7 +22,6 @@ type GT struct {
// It is needed for fuzzing. It should also be noted,
// that the output of this function may not match other
func Pair(a_ *G1, b_ *G2) *GT {
a := a_.inner
b := b_.inner

View file

@ -166,7 +166,6 @@ func fuzzPair(data []byte) int {
//
// For the definition of `s` see 3.5 in https://eprint.iacr.org/2015/192.pdf
func normalizeGTToGnark(cloudflareOrGoogleGT []byte) *gnark.GT {
// Compute s = 2*u(6*u^2 + 3*u + 1)
u, _ := new(big.Int).SetString("0x44e992b44a6909f1", 0)
u_exp2 := new(big.Int).Exp(u, big.NewInt(2), nil) // u^2