Skip to content

Commit 05d2335

Browse files
committed
Clean up comments
1 parent ed4307e commit 05d2335

File tree

1 file changed

+3
-19
lines changed
  • crates/bad_encrypted_share_prove/src

1 file changed

+3
-19
lines changed

crates/bad_encrypted_share_prove/src/main.rs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,9 @@ fn parse_message<Setup: dkg::DkgSetup + dkg::DkgSetupTypes<Setup>>(
160160

161161
stream.finalize();
162162

163-
println!("gen_id: {}", gen_id);
164-
println!("msg_type: {}", msg_type);
165-
println!("secret: {}", secret);
166-
println!("commitment_hash: {}", commitment_hash);
167-
println!("commitment_pubkey: {}", commitment_pubkey);
168-
println!("commitment_signature: {}", commitment_signature);
163+
if stream.bytes_left() != 0 {
164+
return Err("Invalid message".to_string());
165+
}
169166

170167
if settings.gen_id != gen_id {
171168
return Err("Invalid gen_id".to_string());
@@ -299,19 +296,6 @@ where
299296
}
300297

301298
Err(e) => {
302-
// if let Some(verification_error) = e.downcast_ref::<VerificationErrors>() {
303-
// match verification_error {
304-
// VerificationErrors::SlashableError(err) => {
305-
306-
// return;
307-
// }
308-
// VerificationErrors::UnslashableError(err) => {
309-
// panic!("Unslashable error seed exchange commitment: {}", err);
310-
// }
311-
// }
312-
// } else {
313-
// panic!("Unknown error seed exchange commitment: {}", e);
314-
// }
315299
println!("Slashable error seed exchange commitment: {}", e);
316300

317301
println!(

0 commit comments

Comments
 (0)