This commit is contained in:
wborgeaud 2021-08-10 13:52:50 +02:00
parent f91b9b60c6
commit 57f2b5b763
4 changed files with 6 additions and 4 deletions

View File

@ -203,7 +203,8 @@ impl<F: Extendable<D>, const D: usize> CircuitBuilder<F, D> {
) -> ExtensionTarget<D> {
assert!(D > 1, "Not implemented for D=1.");
let config = self.config.clone();
let degree_log = proof.evals_proofs[0].1.siblings.len() - config.rate_bits;
let degree_log = common_data.config.cap_height + proof.evals_proofs[0].1.siblings.len()
- config.rate_bits;
let one = self.one_extension();
let subgroup_x = self.convert_to_ext(subgroup_x);
let vanish_zeta = self.sub_extension(subgroup_x, zeta);

View File

@ -190,7 +190,8 @@ fn fri_combine_initial<F: Field + Extendable<D>, const D: usize>(
) -> F::Extension {
let config = &common_data.config;
assert!(D > 1, "Not implemented for D=1.");
let degree_log = proof.evals_proofs[0].1.siblings.len() - config.rate_bits;
let degree_log =
common_data.config.cap_height + proof.evals_proofs[0].1.siblings.len() - config.rate_bits;
let subgroup_x = F::Extension::from_basefield(subgroup_x);
let mut alpha = ReducingFactor::new(alpha);
let mut sum = F::Extension::ZERO;

View File

@ -119,7 +119,7 @@ mod tests {
let leaves = random_data::<F>(n, 7);
verify_all_leaves(leaves.clone(), n, false)?;
verify_all_leaves(leaves, n, true)?;
// verify_all_leaves(leaves, n, true)?;
Ok(())
}

View File

@ -72,7 +72,7 @@ impl CircuitConfig {
proof_of_work_bits: 1,
reduction_arity_bits: vec![1, 1, 1, 1],
num_query_rounds: 1,
cap_height: 0,
cap_height: 1,
},
}
}