Skip to content

Commit 1f18000

Browse files
authored
Merge pull request #2684 from input-output-hk/jpraynaud/2625-new-stm-minor
chore: bump STM minor to `0.5.0`
2 parents 7f84ed8 + a6a96fe commit 1f18000

File tree

14 files changed

+52
-46
lines changed

14 files changed

+52
-46
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-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ kes-summed-ed25519 = { version = "0.2.1", features = [
5050
"serde_enabled",
5151
"sk_clone_enabled",
5252
] }
53-
mithril-stm = { path = "../mithril-stm", version = "=0.4", default-features = false }
53+
mithril-stm = { path = "../mithril-stm", version = ">=0.4", default-features = false }
5454
nom = "8.0.0"
5555
rand_chacha = { workspace = true }
5656
rand_core = { workspace = true }

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.5.0 (09-09-2025)
9+
10+
### Changed
11+
12+
- Bumped new minor version for release following deprecations of structure names and functions.
13+
814
## 0.4.9 (07-07-2025)
915

1016
### 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.4.12"
3+
version = "0.5.0"
44
edition = { workspace = true }
55
authors = { workspace = true }
66
homepage = { workspace = true }

mithril-stm/src/aggregate_signature/aggregate_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<D: Digest + Clone + FixedOutput> AggregateVerificationKey<D> {
2222
}
2323

2424
#[deprecated(
25-
since = "0.4.9",
25+
since = "0.5.0",
2626
note = "Use `get_merkle_tree_batch_commitment` instead"
2727
)]
2828
pub fn get_mt_commitment(&self) -> MerkleTreeBatchCommitment<D> {

mithril-stm/src/aggregate_signature/basic_verifier.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl BasicVerifier {
4545
/// * Collect the unique signers in a hash set,
4646
/// * Calculate the total stake of the eligible signers,
4747
/// * Sort the eligible signers.
48-
#[deprecated(since = "0.4.9", note = "Use `new` instead")]
48+
#[deprecated(since = "0.5.0", note = "Use `new` instead")]
4949
pub fn setup(public_signers: &[(BlsVerificationKey, Stake)]) -> Self {
5050
Self::new(public_signers)
5151
}
@@ -181,7 +181,7 @@ impl BasicVerifier {
181181
// todo: We need to agree on a criteria to dedup (by default we use a BTreeMap that guarantees keys order)
182182
// todo: not good, because it only removes index if there is a conflict (see benches)
183183
#[deprecated(
184-
since = "0.4.9",
184+
since = "0.5.0",
185185
note = "Use `select_valid_signatures_for_k_indices` instead"
186186
)]
187187
pub fn dedup_sigs_for_indices(

mithril-stm/src/aggregate_signature/clerk.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<D: Digest + Clone + FixedOutput> Clerk<D> {
2929

3030
/// Create a new `Clerk` from a closed registration instance.
3131
#[deprecated(
32-
since = "0.4.9",
32+
since = "0.5.0",
3333
note = "Use `new_clerk_from_closed_key_registration` instead"
3434
)]
3535
pub fn from_registration(params: &Parameters, closed_reg: &ClosedKeyRegistration<D>) -> Self {
@@ -51,7 +51,7 @@ impl<D: Digest + Clone + FixedOutput> Clerk<D> {
5151
}
5252

5353
/// Create a Clerk from a signer.
54-
#[deprecated(since = "0.4.9", note = "Use `new_clerk_from_signer` instead")]
54+
#[deprecated(since = "0.5.0", note = "Use `new_clerk_from_signer` instead")]
5555
pub fn from_signer(signer: &Signer<D>) -> Self {
5656
Self::new_clerk_from_signer(signer)
5757
}
@@ -108,7 +108,7 @@ impl<D: Digest + Clone + FixedOutput> Clerk<D> {
108108
/// The list of merkle tree indexes is used to create a batch proof, to prove that all signatures are from eligible signers.
109109
///
110110
/// It returns an instance of `AggregateSignature`.
111-
#[deprecated(since = "0.4.9", note = "Use `aggregate_signatures` instead")]
111+
#[deprecated(since = "0.5.0", note = "Use `aggregate_signatures` instead")]
112112
pub fn aggregate(
113113
&self,
114114
sigs: &[SingleSignature],
@@ -124,7 +124,7 @@ impl<D: Digest + Clone + FixedOutput> Clerk<D> {
124124

125125
/// Compute the `AggregateVerificationKey` related to the used registration.
126126
#[deprecated(
127-
since = "0.4.9",
127+
since = "0.5.0",
128128
note = "Use `compute_aggregate_verification_key` instead"
129129
)]
130130
pub fn compute_avk(&self) -> AggregateVerificationKey<D> {
@@ -143,7 +143,7 @@ impl<D: Digest + Clone + FixedOutput> Clerk<D> {
143143
}
144144

145145
/// Get the (VK, stake) of a party given its index.
146-
#[deprecated(since = "0.4.9", note = "Use `get_registered_party_for_index` instead")]
146+
#[deprecated(since = "0.5.0", note = "Use `get_registered_party_for_index` instead")]
147147
pub fn get_reg_party(&self, party_index: &Index) -> Option<(VerificationKey, Stake)> {
148148
Self::get_registered_party_for_index(self, party_index)
149149
}

mithril-stm/src/bls_multi_signature/verification_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl BlsVerificationKeyProofOfPossession {
164164
/// manually.
165165
// If we are really looking for performance improvements, we can combine the
166166
// two final exponentiations (for verifying k1 and k2) into a single one.
167-
#[deprecated(since = "0.4.9", note = "Use `verify_proof_of_possesion` instead")]
167+
#[deprecated(since = "0.5.0", note = "Use `verify_proof_of_possesion` instead")]
168168
pub fn check(&self) -> Result<(), MultiSignatureError> {
169169
Self::verify_proof_of_possesion(self)
170170
}

mithril-stm/src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,47 +140,47 @@ pub type Stake = u64;
140140
pub type Index = u64;
141141

142142
// Aliases
143-
#[deprecated(since = "0.4.8", note = "Use `AggregateSignature` instead")]
143+
#[deprecated(since = "0.5.0", note = "Use `AggregateSignature` instead")]
144144
pub use aggregate_signature::AggregateSignature as StmAggrSig;
145145

146-
#[deprecated(since = "0.4.8", note = "Use `AggregateVerificationKey` instead")]
146+
#[deprecated(since = "0.5.0", note = "Use `AggregateVerificationKey` instead")]
147147
pub use aggregate_signature::AggregateVerificationKey as StmAggrVerificationKey;
148148

149-
#[deprecated(since = "0.4.8", note = "Use `Clerk` instead")]
149+
#[deprecated(since = "0.5.0", note = "Use `Clerk` instead")]
150150
pub use aggregate_signature::Clerk as StmClerk;
151151

152-
#[deprecated(since = "0.4.8", note = "Use `ClosedKeyRegistration` instead")]
152+
#[deprecated(since = "0.5.0", note = "Use `ClosedKeyRegistration` instead")]
153153
pub use key_registration::ClosedKeyRegistration as ClosedKeyReg;
154154

155-
#[deprecated(since = "0.4.8", note = "Use `KeyRegistration` instead")]
155+
#[deprecated(since = "0.5.0", note = "Use `KeyRegistration` instead")]
156156
pub use key_registration::KeyRegistration as KeyReg;
157157

158-
#[deprecated(since = "0.4.8", note = "Use `Parameters` instead")]
158+
#[deprecated(since = "0.5.0", note = "Use `Parameters` instead")]
159159
pub use parameters::Parameters as StmParameters;
160160

161-
#[deprecated(since = "0.4.8", note = "Use `Initializer` instead")]
161+
#[deprecated(since = "0.5.0", note = "Use `Initializer` instead")]
162162
pub use participant::Initializer as StmInitializer;
163163

164-
#[deprecated(since = "0.4.8", note = "Use `Signer` instead")]
164+
#[deprecated(since = "0.5.0", note = "Use `Signer` instead")]
165165
pub use participant::Signer as StmSigner;
166166

167-
#[deprecated(since = "0.4.8", note = "Use `VerificationKey` instead")]
167+
#[deprecated(since = "0.5.0", note = "Use `VerificationKey` instead")]
168168
pub use participant::VerificationKey as StmVerificationKey;
169169

170170
#[deprecated(
171-
since = "0.4.8",
171+
since = "0.5.0",
172172
note = "Use `VerificationKeyProofOfPossession` instead"
173173
)]
174174
pub use participant::VerificationKeyProofOfPossession as StmVerificationKeyPoP;
175175

176-
#[deprecated(since = "0.4.8", note = "Use `SingleSignature` instead")]
176+
#[deprecated(since = "0.5.0", note = "Use `SingleSignature` instead")]
177177
pub use single_signature::SingleSignature as StmSig;
178178

179-
#[deprecated(since = "0.4.6", note = "Use `BasicVerifier` instead")]
179+
#[deprecated(since = "0.5.0", note = "Use `BasicVerifier` instead")]
180180
pub use aggregate_signature::BasicVerifier as CoreVerifier;
181181

182182
#[deprecated(
183-
since = "0.4.6",
183+
since = "0.5.0",
184184
note = "Use `SingleSignatureWithRegisteredParty` instead"
185185
)]
186186
pub use single_signature::SingleSignatureWithRegisteredParty as StmSigRegParty;

mithril-stm/src/merkle_tree/commitment.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<D: Digest + FixedOutput> MerkleTreeCommitment<D> {
5757
/// # Error
5858
/// If the merkle tree path is invalid, then the function fails.
5959
#[deprecated(
60-
since = "0.4.9",
60+
since = "0.5.0",
6161
note = "Use `verify_leaf_membership_from_path` instead"
6262
)]
6363
pub fn check(
@@ -86,7 +86,7 @@ impl<D: Digest + FixedOutput> MerkleTreeCommitment<D> {
8686

8787
/// Serializes the Merkle Tree commitment together with a message in a single vector of bytes.
8888
/// Outputs `msg || self` as a vector of bytes.
89-
#[deprecated(since = "0.4.9", note = "Use `concatenate_with_message` instead")]
89+
#[deprecated(since = "0.5.0", note = "Use `concatenate_with_message` instead")]
9090
pub fn concat_with_msg(&self, msg: &[u8]) -> Vec<u8>
9191
where
9292
D: Digest,
@@ -136,7 +136,7 @@ impl<D: Digest> MerkleTreeBatchCommitment<D> {
136136
/// Serializes the Merkle Tree commitment together with a message in a single vector of bytes.
137137
/// Outputs `msg || self` as a vector of bytes.
138138
// todo: Do we need to concat msg to whole commitment (nr_leaves and root) or just the root?
139-
#[deprecated(since = "0.4.9", note = "Use `concatenate_with_message` instead")]
139+
#[deprecated(since = "0.5.0", note = "Use `concatenate_with_message` instead")]
140140
pub fn concat_with_msg(&self, msg: &[u8]) -> Vec<u8> {
141141
Self::concatenate_with_message(self, msg)
142142
}
@@ -241,7 +241,7 @@ impl<D: Digest> MerkleTreeBatchCommitment<D> {
241241
// todo: Simplify the algorithm.
242242
// todo: Maybe we want more granular errors, rather than only `BatchPathInvalid`
243243
#[deprecated(
244-
since = "0.4.9",
244+
since = "0.5.0",
245245
note = "Use `verify_leaves_membership_from_batch_path` instead"
246246
)]
247247
pub fn check(

0 commit comments

Comments
 (0)