Skip to content

Commit 140228e

Browse files
Apply suggestions from code review
Co-authored-by: Jean-Philippe Raynaud <jp.raynaud@gmail.com>
1 parent 9a6ba00 commit 140228e

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

mithril-stm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-stm"
3-
version = "0.5.6"
3+
version = "0.6.0"
44
edition = { workspace = true }
55
authors = { workspace = true }
66
homepage = { workspace = true }

mithril-stm/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ match msig {
141141
println!("Not enough signatures");
142142
assert!(n < &params.k && k == &params.k)
143143
},
144-
// Some(AggregationError::UsizeConversionInvalid) => {
145-
// println!("Invalid usize conversion");
146-
// },
144+
147145
Some(AggregationError::UnsupportedProofSystem(aggregate_signature_type)) => {
148146
println!("Unsupported proof system: {:?}", aggregate_signature_type);
149147
},

mithril-stm/src/aggregate_signature/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,7 @@ mod tests {
267267
println!("Not enough signatures");
268268
assert!(n < &params.k && k == &params.k)
269269
},
270-
// Some(AggregationError::UsizeConversionInvalid) => {
271-
// println!("Invalid usize conversion");
272-
// },
270+
273271
Some(AggregationError::UnsupportedProofSystem(aggregate_signature_type)) => {
274272
println!("Unsupported proof system: {:?}", aggregate_signature_type);
275273
},

mithril-stm/src/key_registration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ mod tests {
141141
assert_eq!(fake_it, 0);
142142
assert!(a.verify_proof_of_possession().is_err());
143143
},
144-
_ => {println!("Unexpected error: {error}")}
144+
_ => {panic!("Unexpected error: {error}")}
145145
}
146146
}
147147
}

mithril-stm/tests/stm_basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn test_core_verifier() {
6969
assert!((nr_indices) < &params.k)
7070
}
7171
_ => {
72-
println!("Unexpected error: {:?}", error);
72+
panic!("Unexpected error: {:?}", error);
7373
}
7474
},
7575
}

mithril-stm/tests/stm_protocol.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ fn test_full_protocol() {
3939
println!("Not enough signatures");
4040
assert!(n < &params.k && k == &params.k)
4141
}
42-
// Some(AggregationError::UsizeConversionInvalid) => {
43-
// println!("Invalid usize conversion");
44-
// }
42+
4543
Some(AggregationError::UnsupportedProofSystem(aggregate_signature_type)) => {
46-
println!("Unsupported proof system: {:?}", aggregate_signature_type);
44+
panic!("Unsupported proof system: {:?}", aggregate_signature_type);
4745
}
4846
_ => {
49-
println!("Unexpected error during aggregation: {:?}", error);
47+
panic!("Unexpected error during aggregation: {:?}", error);
5048
}
5149
},
5250
}

0 commit comments

Comments
 (0)