MCPcopy Create free account
hub / github.com/docknetwork/crypto / compute_new_post_remove_batch

Method compute_new_post_remove_batch

vb_accumulator/src/universal.rs:338–347  ·  view source on GitHub ↗

Compute new accumulated value after batch removal

(
        &self,
        elements: &[G::ScalarField],
        sk: &SecretKey<G::ScalarField>,
    )

Source from the content-addressed store, hash-verified

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(

Callers 1

Calls 2

zeroizeMethod · 0.45

Tested by 1