mirror of
https://github.com/arnaucube/hyperplonk.git
synced 2026-01-11 16:41:28 +01:00
Merge pull request #16 from EspressoSystems/minor-bugfix
minor naming bugfix
This commit is contained in:
@@ -76,7 +76,6 @@ impl<F: PrimeField> SumCheckProver<F> for ProverState<F> {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|x| x.as_ref().clone())
|
.map(|x| x.as_ref().clone())
|
||||||
.collect();
|
.collect();
|
||||||
let products = self.poly.products.clone();
|
|
||||||
|
|
||||||
if let Some(chal) = challenge {
|
if let Some(chal) = challenge {
|
||||||
if self.round == 0 {
|
if self.round == 0 {
|
||||||
@@ -113,6 +112,7 @@ impl<F: PrimeField> SumCheckProver<F> for ProverState<F> {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let products_list = self.poly.products.clone();
|
||||||
let i = self.round;
|
let i = self.round;
|
||||||
let nv = self.poly.domain_info.num_variables;
|
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
|
let degree = self.poly.domain_info.max_degree; // the degree of univariate polynomial sent by prover at this round
|
||||||
@@ -126,7 +126,7 @@ impl<F: PrimeField> SumCheckProver<F> for ProverState<F> {
|
|||||||
products_sum.par_iter_mut().enumerate().for_each(|(t, e)| {
|
products_sum.par_iter_mut().enumerate().for_each(|(t, e)| {
|
||||||
for b in 0..1 << (nv - i) {
|
for b in 0..1 << (nv - i) {
|
||||||
// evaluate P_round(t)
|
// evaluate P_round(t)
|
||||||
for (coefficient, products) in products.iter() {
|
for (coefficient, products) in products_list.iter() {
|
||||||
let num_multiplicands = products.len();
|
let num_multiplicands = products.len();
|
||||||
let mut product = *coefficient;
|
let mut product = *coefficient;
|
||||||
for &f in products.iter().take(num_multiplicands) {
|
for &f in products.iter().take(num_multiplicands) {
|
||||||
@@ -147,7 +147,7 @@ impl<F: PrimeField> SumCheckProver<F> for ProverState<F> {
|
|||||||
.enumerate()
|
.enumerate()
|
||||||
.for_each(|(t, e)| {
|
.for_each(|(t, e)| {
|
||||||
// evaluate P_round(t)
|
// evaluate P_round(t)
|
||||||
for (coefficient, products) in products.iter() {
|
for (coefficient, products) in products_list.iter() {
|
||||||
let num_multiplicands = products.len();
|
let num_multiplicands = products.len();
|
||||||
let mut product = *coefficient;
|
let mut product = *coefficient;
|
||||||
for &f in products.iter().take(num_multiplicands) {
|
for &f in products.iter().take(num_multiplicands) {
|
||||||
|
|||||||
Reference in New Issue
Block a user