Skip to content

Commit b7443c5

Browse files
olegnnlovesh
authored andcommitted
fmt
1 parent c197096 commit b7443c5

File tree

6 files changed

+32
-13
lines changed

6 files changed

+32
-13
lines changed

bbs_plus/src/setup.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ use zeroize::{Zeroize, ZeroizeOnDrop};
6363

6464
use core::iter::once;
6565
use dock_crypto_utils::{
66-
affine_group_from_slices,
67-
concat_slices, hashing_utils::projective_group_elem_from_try_and_incr, iter::*,
68-
misc::seq_pairs_satisfy, serde_utils::*, try_iter::CheckLeft,
66+
affine_group_from_slices, concat_slices,
67+
hashing_utils::projective_group_elem_from_try_and_incr, iter::*, misc::seq_pairs_satisfy,
68+
serde_utils::*, try_iter::CheckLeft,
6969
};
7070
use itertools::process_results;
7171

benches/benches/kos_ote.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ fn kos_ote(c: &mut Criterion) {
119119
b.iter(|| {
120120
ext_receiver_setup
121121
.clone()
122-
.decrypt(black_box(encryptions.clone()), black_box(message_size as u32))
122+
.decrypt(
123+
black_box(encryptions.clone()),
124+
black_box(message_size as u32),
125+
)
123126
.unwrap()
124127
})
125128
});

coconut/src/setup/signature_params.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use ark_ec::{pairing::Pairing, AffineRepr};
88
use ark_serialize::*;
99
use ark_std::cfg_into_iter;
1010
use serde_with::serde_as;
11-
use utils::{
12-
affine_group_from_slices, serde_utils::ArkObjectBytes,
13-
};
11+
use utils::{affine_group_from_slices, serde_utils::ArkObjectBytes};
1412

1513
#[cfg(feature = "parallel")]
1614
use rayon::prelude::*;

oblivious_transfer/src/ot_extensions/alsz_ote.rs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,16 @@ impl OTExtensionSenderSetup {
366366
let mut Q = vec![0; matrix_byte_size];
367367
let zero = vec![0; column_size];
368368
for (i, k) in base_ot_keys.0.into_iter().enumerate() {
369-
Self::fill_q_matrix(&mut Q, &U.0, &k, &base_ot_choices, &zero, i, i, column_size as u32);
369+
Self::fill_q_matrix(
370+
&mut Q,
371+
&U.0,
372+
&k,
373+
&base_ot_choices,
374+
&zero,
375+
i,
376+
i,
377+
column_size as u32,
378+
);
370379
}
371380
let Q = transpose(
372381
&Q,
@@ -407,8 +416,16 @@ impl OTExtensionSenderSetup {
407416
let zero = vec![0; column_size];
408417
let mut prgs = Vec::with_capacity(ote_config.num_base_ot as usize);
409418
for (i, k) in base_ot_keys.0.into_iter().enumerate() {
410-
let k =
411-
Self::fill_q_matrix(&mut Q, &U.0, &k, &base_ot_choices, &zero, i, i, column_size as u32);
419+
let k = Self::fill_q_matrix(
420+
&mut Q,
421+
&U.0,
422+
&k,
423+
&base_ot_choices,
424+
&zero,
425+
i,
426+
i,
427+
column_size as u32,
428+
);
412429
prgs.push(k);
413430
}
414431
for i in 0..ote_config.num_base_ot {
@@ -614,7 +631,8 @@ impl OTExtensionSenderSetup {
614631
u_row_index: usize,
615632
column_size: u32,
616633
) -> Vec<u8> {
617-
let q_i = &mut Q[q_row_index * column_size as usize..(q_row_index + 1) * column_size as usize];
634+
let q_i =
635+
&mut Q[q_row_index * column_size as usize..(q_row_index + 1) * column_size as usize];
618636
key_to_aes_rng(k).fill_bytes(q_i);
619637
let k = q_i.to_vec();
620638
let start = u_row_index * column_size as usize;

secret_sharing_and_dkg/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use ark_ff::PrimeField;
33
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
44
use ark_std::{cfg_into_iter, cfg_iter, vec::Vec};
55
use digest::Digest;
6-
use dock_crypto_utils::{serde_utils::ArkObjectBytes, affine_group_from_slices};
6+
use dock_crypto_utils::{affine_group_from_slices, serde_utils::ArkObjectBytes};
77
use serde::{Deserialize, Serialize};
88
use serde_with::serde_as;
99
use zeroize::{Zeroize, ZeroizeOnDrop};

utils/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ macro_rules! concat_slices {
66
}
77
}
88

9-
/// Concatenates provided byte slices and hashes result to a point on the curve. Returns as Affine coordinates.
9+
/// Concatenates provided byte slices and hashes result to a point on the curve. Returns as Affine coordinates.
1010
#[macro_export]
1111
macro_rules! affine_group_from_slices {
1212
($($arg: expr),+) => {

0 commit comments

Comments
 (0)