Skip to content

Commit

Permalink
feat(halo2_proofs): add drop_but_fixed_values() to ProvingKey
Browse files Browse the repository at this point in the history
  • Loading branch information
chokobole committed Jul 9, 2024
1 parent 6cbe670 commit 6fdf426
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,17 @@ where
//+ polynomial_slice_byte_length(&self.fixed_cosets)
+ self.permutation.bytes_length()
}

pub fn drop_but_fixed_values(self) -> Vec<Polynomial<C::Scalar, LagrangeCoeff>> {
drop(self.vk);
drop(self.l0);
drop(self.l_last);
drop(self.l_active_row);
drop(self.fixed_polys);
drop(self.permutation);
drop(self.ev);
self.fixed_values
}
}

impl<C: SerdeCurveAffine> ProvingKey<C>
Expand Down

0 comments on commit 6fdf426

Please sign in to comment.