mirror of https://github.com/zcash/halo2.git
Simplify l_last assignment.
This commit is contained in:
parent
7c66323d87
commit
1c48ace3d9
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue