diff --git a/ecc/bls12-377/fr/gkr/gkr.go b/ecc/bls12-377/fr/gkr/gkr.go index fb3629fc0..c55db62a4 100644 --- a/ecc/bls12-377/fr/gkr/gkr.go +++ b/ecc/bls12-377/fr/gkr/gkr.go @@ -6,6 +6,7 @@ package gkr import ( + "errors" "fmt" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr" "github.com/consensys/gnark-crypto/ecc/bls12-377/fr/polynomial" @@ -136,7 +137,7 @@ func (e *eqTimesGateEvalSumcheckLazyClaims) VerifyFinalEval(r []fr.Element, comb if evaluation.Equal(&purportedValue) { return nil } - return fmt.Errorf("incompatible evaluations") + return errors.New("incompatible evaluations") } type eqTimesGateEvalSumcheckClaims struct { @@ -461,7 +462,7 @@ func setup(c Circuit, assignment WireAssignment, transcriptSettings fiatshamir.S o.nbVars = assignment.NumVars() nbInstances := assignment.NumInstances() if 1<