Fix breaking aggregate_expiration_date test

This commit is contained in:
aniampio
2023-11-24 16:21:39 +00:00
parent e21ccb7f07
commit abbd773840
2 changed files with 3 additions and 2 deletions
@@ -471,7 +471,7 @@ fn bench_aggregate_expiration_date_signatures(c: &mut Criterion) {
fn bench_coin_signing(c: &mut Criterion){
let mut group = c.benchmark_group("benchmark-sign-verify-coin-signing");
let L = 32;
let L = 150000;
let params = setup(L);
let authorities_keypairs = ttp_keygen(&params.grp(), 2, 3).unwrap();
let indices: [u64; 3] = [1, 2, 3];
@@ -519,5 +519,5 @@ fn bench_coin_signing(c: &mut Criterion){
}
criterion_group!(benches, bench_coin_signing);
criterion_group!(benches, bench_partial_sign_expiration_date);
criterion_main!(benches);
@@ -44,6 +44,7 @@ pub fn sign_expiration_date(
) -> Vec<PartialExpirationDateSignature> {
let m0: Scalar = Scalar::from(expiration_date);
let m2: Scalar = Scalar::from_bytes(&constants::TYPE_EXP).unwrap();
(0..constants::VALIDITY_PERIOD)
.into_par_iter()
.fold(