reducing extension gate (#12)

This commit is contained in:
Kevin Jue
2023-05-17 17:40:43 -07:00
committed by GitHub
parent c98d65b48a
commit 2823cfbbcb
7 changed files with 120 additions and 8 deletions

View File

@@ -7,14 +7,14 @@ import (
"github.com/consensys/gnark/std/math/emulated"
)
const D = 2
type EmulatedField = emulated.Goldilocks
type F = emulated.Element[EmulatedField]
type QuadraticExtension = [2]F
type QEAlgebra = [2]QuadraticExtension
type QEAlgebra = [D]QuadraticExtension
type Hash = [4]F
const D = 2
var TEST_CURVE = ecc.BN254
func NewFieldElement(x uint64) F {