diff --git a/common/nym_offline_compact_ecash/benches/benchmarks.rs b/common/nym_offline_compact_ecash/benches/benchmarks.rs index 05d36bb1b6..974e79d847 100644 --- a/common/nym_offline_compact_ecash/benches/benchmarks.rs +++ b/common/nym_offline_compact_ecash/benches/benchmarks.rs @@ -173,7 +173,7 @@ fn bench_compact_ecash(c: &mut Criterion) { .map(|keypair| keypair.verification_key()) .collect(); - let indices: Vec = (0..case.num_authorities).collect(); + let indices: Vec = (1..case.num_authorities + 1).collect(); let verification_key = aggregate_verification_keys(&verification_keys_auth, Some(&indices)).unwrap(); // ISSUANCE PHASE diff --git a/common/nym_offline_divisible_ecash/benches/benchmarks.rs b/common/nym_offline_divisible_ecash/benches/benchmarks.rs index ee2b3cadc4..1fd436ca2d 100644 --- a/common/nym_offline_divisible_ecash/benches/benchmarks.rs +++ b/common/nym_offline_divisible_ecash/benches/benchmarks.rs @@ -165,14 +165,16 @@ fn bench_divisible_ecash(c: &mut Criterion) { let params = Parameters::new(grp.clone()); // KEY GENERATION FOR THE AUTHORITIES - let authorities_keypairs = ttp_keygen_authorities(¶ms, 2, 3).unwrap(); + let threshold = (case.threshold_p * case.num_authorities as f32).round() as u64; + let authorities_keypairs = ttp_keygen_authorities(¶ms, threshold, case.num_authorities).unwrap(); let verification_keys_auth: Vec = authorities_keypairs .iter() .map(|keypair| keypair.verification_key()) .collect(); + let indices: Vec = (1..case.num_authorities + 1).collect(); let verification_key = - aggregate_verification_keys(&verification_keys_auth, Some(&[1, 2, 3])).unwrap(); + aggregate_verification_keys(&verification_keys_auth, Some(&indices)).unwrap(); // KEY GENERATION FOR THE USER let sk = grp.random_scalar();