From 7704f1d4a68decb870f2b2910f127eed80efc960 Mon Sep 17 00:00:00 2001 From: Thomas Piellard Date: Wed, 26 Oct 2022 18:57:41 +0200 Subject: [PATCH] fix: fixed Lagrange polynomials construction --- internal/backend/bls12-377/plonkfri/prove.go | 3 --- internal/backend/bls12-377/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bls12-381/plonkfri/prove.go | 3 --- internal/backend/bls12-381/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bls24-315/plonkfri/prove.go | 3 --- internal/backend/bls24-315/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bls24-317/plonkfri/prove.go | 3 --- internal/backend/bls24-317/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bn254/plonkfri/prove.go | 3 --- internal/backend/bn254/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bw6-633/plonkfri/prove.go | 3 --- internal/backend/bw6-633/plonkfri/verify.go | 25 +++++++++++++---- internal/backend/bw6-761/plonkfri/prove.go | 3 --- internal/backend/bw6-761/plonkfri/verify.go | 25 +++++++++++++---- .../zkpschemes/plonkfri/plonk.prove.go.tmpl | 3 --- .../zkpschemes/plonkfri/plonk.verify.go.tmpl | 27 ++++++++++++++----- test/assert.go | 1 - 17 files changed, 161 insertions(+), 66 deletions(-) diff --git a/internal/backend/bls12-377/plonkfri/prove.go b/internal/backend/bls12-377/plonkfri/prove.go index a9dd5a44e3..213719567b 100644 --- a/internal/backend/bls12-377/plonkfri/prove.go +++ b/internal/backend/bls12-377/plonkfri/prove.go @@ -231,9 +231,6 @@ func Prove(spr *cs.SparseR1CS, pk *ProvingKey, fullWitness bls12_377witness.Witn bOpeningPosition.SetBytes(frOpeningPosition.Marshal()).Mod(&bOpeningPosition, &bFriSize) openingPosition := bOpeningPosition.Uint64() - // derive a query position, which is 0<=i