expanded fri_test.go and implemented more for the fri verifier

This commit is contained in:
Kevin Jue
2022-11-07 18:33:06 -08:00
parent bfcad86ce3
commit da80afaac4
5 changed files with 177 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
package field
import (
"math/big"
"github.com/consensys/gnark-crypto/ecc"
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/std/math/emulated"
@@ -28,3 +30,9 @@ func NewFieldAPI(api frontend.API) frontend.API {
}
return field
}
var r EmulatedField
func EmulatedFieldModulus() *big.Int {
return r.Modulus()
}