Add comments for LDT fix in verifier

This commit is contained in:
wborgeaud 2022-01-19 11:57:46 +01:00
parent 2bb0c4f4e7
commit 27ebc21faf
2 changed files with 4 additions and 0 deletions

View File

@ -281,6 +281,8 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
sum = self.div_add_extension(numerator, denominator, sum);
}
// Multiply the final polynomial by `X`, so that `final_poly` has the maximum degree for
// which the LDT will pass. See github.com/mir-protocol/plonky2/pull/436 for details.
self.mul_extension(sum, subgroup_x)
}

View File

@ -160,6 +160,8 @@ pub(crate) fn fri_combine_initial<
sum += numerator / denominator;
}
// Multiply the final polynomial by `X`, so that `final_poly` has the maximum degree for
// which the LDT will pass. See github.com/mir-protocol/plonky2/pull/436 for details.
sum * subgroup_x
}