mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 17:53:06 +00:00
working
This commit is contained in:
parent
f91b9b60c6
commit
57f2b5b763
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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(())
|
||||
}
|
||||
|
||||
@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user