Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Signed-off-by: lovesh <[email protected]>
  • Loading branch information
lovesh committed Jan 4, 2024
1 parent e3b170a commit e8f280c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 9 additions & 3 deletions vb_accumulator/src/kb_positive_accumulator/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ use crate::{
prelude::SecretKey,
witness::{MembershipWitness, Witness},
};
use ark_ec::{pairing::Pairing};
use ark_ec::pairing::Pairing;

use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
use ark_std::{cfg_into_iter, vec::Vec};
use short_group_sig::bb_sig::SignatureG1 as BBSig;

use crate::batch_utils::{Omega};
use crate::batch_utils::Omega;
#[cfg(feature = "parallel")]
use rayon::prelude::*;

Expand Down Expand Up @@ -110,7 +110,13 @@ impl<E: Pairing> KBPositiveAccumulatorWitness<E> {
removals.push(r);
omegas.push(omega);
}
let (_, new_wit) = MembershipWitness::compute_update_for_multiple_batches(Vec::new(), removals, omegas, self.get_accumulator_member(), &self.accum_witness.0)?;
let (_, new_wit) = MembershipWitness::compute_update_for_multiple_batches(
Vec::new(),
removals,
omegas,
self.get_accumulator_member(),
&self.accum_witness.0,
)?;
Ok(KBPositiveAccumulatorWitness {
signature: self.signature.clone(),
accum_witness: MembershipWitness(new_wit),
Expand Down
3 changes: 1 addition & 2 deletions vb_accumulator/src/kb_universal_accumulator/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ use ark_std::{cfg_into_iter, cfg_iter, vec, vec::Vec};
use crate::prelude::Omega;
use dock_crypto_utils::msm::WindowTable;

use dock_crypto_utils::cfg_iter_sum;
use dock_crypto_utils::ff::inner_product;
use dock_crypto_utils::{cfg_iter_sum, ff::inner_product};
#[cfg(feature = "parallel")]
use rayon::prelude::*;

Expand Down

0 comments on commit e8f280c

Please sign in to comment.