Skip to content

Commit

Permalink
found issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guruvamsi-policharla committed Dec 2, 2024
1 parent fa8ac7a commit bc56996
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ where

// Generate partial decryption
let p_decryption = secret_key.partial_decryption(&ciphertext);
println!(
"My public key: {:?}",
secret_key.get_pk(i as usize, &params, n as usize)
);
if i == 0 {
println!("Partial decryption: {:?}", p_decryption);
}

// Broadcast partial decryption
let broadcast_msg = Msg::Round1Broadcast(Msg1 {
Expand Down Expand Up @@ -139,7 +138,8 @@ where
from_bytes::<E::G2>(&state.partial_decryptions.get(j).unwrap());
}

println!("Received partial decryptions: {:?}", partial_decryptions);
println!("selector: {:?}", selector);
println!("partial decryptions[0]: {}", partial_decryptions[0]);

let dec_key = agg_dec(
&partial_decryptions,
Expand Down
7 changes: 0 additions & 7 deletions tests/aggregate.proptest-regressions

This file was deleted.

2 changes: 1 addition & 1 deletion tests/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async fn setup_ste_keys() {
.map(|sk| sk.partial_decryption(&ct))
.collect::<Vec<_>>();

println!("partial decryptions: {:?}", partial_decryptions);
println!("Partial decryptions[0]: {:?}", partial_decryptions[0]);

let mut selector: Vec<bool> = Vec::new();
for _ in 0..t + 1 {
Expand Down

0 comments on commit bc56996

Please sign in to comment.