tweak len

This commit is contained in:
Daniel Lubarov 2022-01-08 23:44:12 -08:00
parent 3fc5ff4fff
commit 8ec78fc0c1
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ impl<F: Field> PolynomialValues<F> {
}
/// The number of values stored.
pub(crate) fn len(&self) -> usize {
pub fn len(&self) -> usize {
self.values.len()
}

View File

@ -24,8 +24,8 @@ pub fn fri_proof<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const
fri_params: &FriParams,
timing: &mut TimingTree,
) -> FriProof<F, C::Hasher, D> {
let n = lde_polynomial_values.values.len();
assert_eq!(lde_polynomial_coeffs.coeffs.len(), n);
let n = lde_polynomial_values.len();
assert_eq!(lde_polynomial_coeffs.len(), n);
// Commit phase
let (trees, final_coeffs) = timed!(