Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn authored and lovesh committed Sep 1, 2023
1 parent a171b79 commit 7a68563
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions delegatable_credentials/src/set_commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use ark_ff::{
use ark_poly::Polynomial;
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, SerializationError, Valid};
use ark_std::{
cfg_iter,
collections::BTreeSet,
io::{Read, Write},
ops::{Div, Mul, Neg},
Expand Down Expand Up @@ -598,18 +597,19 @@ impl<E: Pairing> AggregateSubsetWitness<E> {
subsets: &[BTreeSet<E::ScalarField>],
) -> Vec<E::ScalarField> {
n_bytes_iter(n)
.zip(cfg_iter!(commitments).zip(subsets))
.map(|(ctr_bytes, (c, s))| {
.zip(commitments)
.zip(subsets)
.map(|((ctr_bytes, c), s)| {
let mut bytes = vec![];
bytes.extend_from_slice(&ctr_bytes);
c.serialize_compressed(&mut bytes).unwrap();
for j in s {
j.serialize_compressed(&mut bytes).unwrap()
}

field_elem_from_try_and_incr::<E::ScalarField, D>(&bytes)
field_elem_from_try_and_incr::<_, D>(&bytes)
})
.collect::<Vec<_>>()
.collect()
}
}

Expand Down

0 comments on commit 7a68563

Please sign in to comment.