Compute new accumulated value after batch removal
(
&self,
elements: &[G::ScalarField],
sk: &SecretKey<G::ScalarField>,
)
| 336 | |
| 337 | /// Compute new accumulated value after batch removal |
| 338 | pub fn compute_new_post_remove_batch( |
| 339 | &self, |
| 340 | elements: &[G::ScalarField], |
| 341 | sk: &SecretKey<G::ScalarField>, |
| 342 | ) -> (G::ScalarField, G) { |
| 343 | let (mut d_alpha_inv, V) = self._compute_new_post_remove_batch(elements, sk); |
| 344 | let f_V = d_alpha_inv * self.f_V; |
| 345 | d_alpha_inv.zeroize(); |
| 346 | (f_V, V) |
| 347 | } |
| 348 | |
| 349 | /// Removing a batch of members from the accumulator. Reads and writes to state. Described in section 3 of the paper |
| 350 | pub fn remove_batch( |