Browse Source

Merge pull request #16 from EspressoSystems/minor-bugfix

minor naming bugfix
main
chancharles92 2 years ago
committed by GitHub
parent
commit
0b251a38e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      poly-iop/src/sum_check/prover.rs

+ 3
- 3
poly-iop/src/sum_check/prover.rs

@ -76,7 +76,6 @@ impl SumCheckProver for ProverState {
.iter()
.map(|x| x.as_ref().clone())
.collect();
let products = self.poly.products.clone();
if let Some(chal) = challenge {
if self.round == 0 {
@ -113,6 +112,7 @@ impl SumCheckProver for ProverState {
));
}
let products_list = self.poly.products.clone();
let i = self.round;
let nv = self.poly.domain_info.num_variables;
let degree = self.poly.domain_info.max_degree; // the degree of univariate polynomial sent by prover at this round
@ -126,7 +126,7 @@ impl SumCheckProver for ProverState {
products_sum.par_iter_mut().enumerate().for_each(|(t, e)| {
for b in 0..1 << (nv - i) {
// evaluate P_round(t)
for (coefficient, products) in products.iter() {
for (coefficient, products) in products_list.iter() {
let num_multiplicands = products.len();
let mut product = *coefficient;
for &f in products.iter().take(num_multiplicands) {
@ -147,7 +147,7 @@ impl SumCheckProver for ProverState {
.enumerate()
.for_each(|(t, e)| {
// evaluate P_round(t)
for (coefficient, products) in products.iter() {
for (coefficient, products) in products_list.iter() {
let num_multiplicands = products.len();
let mut product = *coefficient;
for &f in products.iter().take(num_multiplicands) {

Loading…
Cancel
Save