Simplify l_last assignment.

This commit is contained in:
Sean Bowe 2021-07-09 09:20:52 -06:00
parent 7c66323d87
commit 1c48ace3d9
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 1 additions and 5 deletions

View File

@ -272,11 +272,7 @@ where
// Compute l_last(X) which evaluates to 1 on the first inactive row (just
// before the blinding factors) and 0 otherwise over the domain
let mut l_last = vk.domain.empty_lagrange();
*(l_last[..]
.iter_mut()
.rev()
.nth(cs.blinding_factors())
.unwrap()) = C::Scalar::one();
l_last[params.n as usize - cs.blinding_factors() - 1] = C::Scalar::one();
let l_last = vk.domain.lagrange_to_coeff(l_last);
let l_last = vk.domain.coeff_to_extended(l_last, Rotation::cur());