Skip to content

Commit af7e967

Browse files
committed
change log and crates version
revert mithril common stm version common - stm version Apply suggestions from code review Co-authored-by: Jean-Philippe Raynaud <[email protected]> Co-authored-by: DJO <[email protected]> code review suggestions
1 parent e140acb commit af7e967

File tree

10 files changed

+32
-21
lines changed

10 files changed

+32
-21
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protocol-demo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithrildemo"
3-
version = "0.1.50"
3+
version = "0.1.51"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
documentation = { workspace = true }

mithril-common/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-common"
3-
version = "0.5.29"
3+
version = "0.5.30"
44
description = "Common types, interfaces, and utilities for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }
@@ -47,7 +47,9 @@ kes-summed-ed25519 = { version = "0.2.1", features = [
4747
"serde_enabled",
4848
"sk_clone_enabled",
4949
] }
50-
mithril-stm = { path = "../mithril-stm", version = "0.3", default-features = false, features = ["batch-verify-aggregates"] }
50+
mithril-stm = { path = "../mithril-stm", version = ">=0.3", default-features = false, features = [
51+
"batch-verify-aggregates"
52+
] }
5153
nom = "8.0.0"
5254
pallas-addresses = { version = "0.32.0", optional = true }
5355
pallas-codec = { version = "0.32.0", optional = true }

mithril-stm/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ 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.4.0 (15-05-2025)
9+
10+
### Added
11+
12+
- Added a `participant` module and `StmInitializer` and `StmSigner` functionality covered by its submodules.
13+
14+
### Changed
15+
16+
- STM module visibilities are changed.
17+
818
## 0.3.44 (28-04-2025)
919

1020
- Removed the build script and deprecated `batch-verify-aggregate` feature as the code behind this feature is now

mithril-stm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-stm"
3-
version = "0.3.46"
3+
version = "0.4.0"
44
edition = { workspace = true }
55
authors = { workspace = true }
66
homepage = { workspace = true }

mithril-stm/src/lib.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,25 @@
22
//! Implementation of Stake-based Threshold Multisignatures
33
44
mod bls_multi_signature;
5-
65
mod eligibility_check;
76
mod error;
87
mod key_reg;
98
mod merkle_tree;
109
mod participant;
1110
mod stm;
1211

13-
pub use crate::error::{
12+
pub use error::{
1413
AggregationError, CoreVerifierError, RegisterError, StmAggregateSignatureError,
1514
StmSignatureError,
1615
};
16+
pub use key_reg::{ClosedKeyReg, KeyReg};
1717
pub use participant::{StmInitializer, StmSigner, StmVerificationKey, StmVerificationKeyPoP};
1818
pub use stm::{
1919
CoreVerifier, Index, Stake, StmAggrSig, StmAggrVerificationKey, StmClerk, StmParameters,
2020
StmSig, StmSigRegParty,
2121
};
2222

2323
#[cfg(feature = "benchmark-internals")]
24-
pub use crate::bls_multi_signature::{
24+
pub use bls_multi_signature::{
2525
ProofOfPossession, Signature, SigningKey, VerificationKey, VerificationKeyPoP,
2626
};
27-
28-
pub use key_reg::{ClosedKeyReg, KeyReg};

mithril-stm/src/participant/initializer.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
use blake2::digest::Digest;
2+
use digest::FixedOutput;
3+
use rand_core::{CryptoRng, RngCore};
4+
use serde::{Deserialize, Serialize};
5+
16
use crate::bls_multi_signature::{SigningKey, VerificationKeyPoP};
27
use crate::key_reg::{ClosedKeyReg, RegParty};
38
use crate::participant::StmSigner;
49
use crate::stm::{Stake, StmParameters};
510
use crate::RegisterError;
6-
use blake2::digest::Digest;
7-
use digest::FixedOutput;
8-
use rand_core::{CryptoRng, RngCore};
9-
use serde::{Deserialize, Serialize};
1011

1112
/// Wrapper of the MultiSignature Verification key with proof of possession
1213
pub type StmVerificationKeyPoP = VerificationKeyPoP;

mithril-stm/src/participant/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
mod initializer;
44
mod signer;
55

6-
pub use crate::participant::initializer::{StmInitializer, StmVerificationKeyPoP};
7-
pub use crate::participant::signer::{StmSigner, StmVerificationKey};
6+
pub use initializer::{StmInitializer, StmVerificationKeyPoP};
7+
pub use signer::{StmSigner, StmVerificationKey};

mithril-stm/src/participant/signer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ impl<D: Clone + Digest + FixedOutput> StmSigner<D> {
135135
}
136136

137137
/// Get closed key registration
138-
pub fn get_closed_reg(&self) -> ClosedKeyReg<D> {
139-
self.closed_reg.clone().unwrap()
138+
pub fn get_closed_reg(&self) -> Option<ClosedKeyReg<D>> {
139+
self.closed_reg.clone()
140140
}
141141

142142
/// Get verification key

mithril-stm/src/stm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ impl<D: Digest + Clone + FixedOutput> StmClerk<D> {
425425
let closed_reg = signer
426426
.get_closed_reg()
427427
.clone()
428-
// .expect("Core signer does not include closed registration. StmClerk, and so, the Stm certificate cannot be built without closed registration!")
428+
.expect("Core signer does not include closed registration. StmClerk, and so, the Stm certificate cannot be built without closed registration!")
429429
;
430430

431431
Self {

0 commit comments

Comments
 (0)