File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed
crates/bad_encrypted_share_prove/src Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments