Skip to content

Commit a22a5c5

Browse files
curiecryptjpraynaud
andcommitted
change log and crates version
Co-authored-by: Jean-Philippe Raynaud <jp.raynaud@gmail.com>
1 parent f8cf4f3 commit a22a5c5

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mithril-stm/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.6.0 (11-19-2025)
9+
10+
### Changed
11+
12+
- Stm error handling is done with `anyhow`.
13+
814
## 0.5.5 (10-13-2025)
915

1016
### Fixed

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.5"
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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,6 @@ 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-
// },
273270
Some(AggregationError::UnsupportedProofSystem(aggregate_signature_type)) => {
274271
println!("Unsupported proof system: {:?}", aggregate_signature_type);
275272
},

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)