From 839110b794f4b40182ce2cbe893eae42fe7a6c60 Mon Sep 17 00:00:00 2001 From: wborgeaud Date: Tue, 12 Oct 2021 20:21:29 +0200 Subject: [PATCH] `coset_index` in other places --- src/plonk/get_challenges.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plonk/get_challenges.rs b/src/plonk/get_challenges.rs index 6a92c819..44249f7b 100644 --- a/src/plonk/get_challenges.rs +++ b/src/plonk/get_challenges.rs @@ -204,13 +204,13 @@ impl, const D: usize> CompressedProofWithPublicInpu .iter() .enumerate() { - if !seen_indices_by_depth[i].insert(x_index >> arity_bits) { + let coset_index = x_index >> arity_bits; + if !seen_indices_by_depth[i].insert(coset_index) { // If this index has already been seen, we can skip the rest of the reductions. break; } fri_inferred_elements.push(old_eval); let arity = 1 << arity_bits; - let coset_index = x_index >> arity_bits; let mut evals = self.proof.opening_proof.query_round_proofs.steps[i][&coset_index] .evals .clone(); @@ -224,7 +224,7 @@ impl, const D: usize> CompressedProofWithPublicInpu fri_betas[i], ); subgroup_x = subgroup_x.exp_power_of_2(arity_bits); - x_index >>= arity_bits; + x_index = coset_index; } } FriInferredElements(fri_inferred_elements)