Skip to content

Commit f8dc6ca

Browse files
committed
Fix remaining 'Core' mentions
Replace them with 'Stm' for clarity.
1 parent 9d782b2 commit f8dc6ca

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This repository is sliced in the following parts:
5454

5555
* [**Mithril Common**](./mithril-common): this is the **common** library that is used by the **Mithril Network** nodes.
5656

57-
* [**Mithril Core**](./mithril-stm): the **core** library that implements **Mithril** protocol cryptographic engine.
57+
* [**Mithril STM**](./mithril-stm): the **core** library that implements **Mithril** protocol cryptographic engine.
5858

5959
* [**Mithril Explorer**](./mithril-explorer): the **explorer** website that connects to a **Mithril Aggregator** and displays its **Certificate Chain**.
6060

docs/root/manual/developer-docs/references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For more information about the **Mithril Protocol**, please refer to the [About
2929
| Dependency | Description | Source Repository | Rust Documentation | REST API
3030
|------------|-------------|:-----------------:|:------------------:|:------------:|
3131
| **Mithril Common** | This is the **common** library that is used by the **Mithril Network** nodes. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-common) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril_common/index.html) | -
32-
| **Mithril Core** | The **core** library that implements **Mithril** protocol cryptographic engine. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-stm) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril/index.html) | -
32+
| **Mithril STM** | The **core** library that implements **Mithril** protocol cryptographic engine. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-stm) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril_stm/index.html) | -
3333
| **Mithril Aggregator** | The node of the **Mithril Network** responsible for collecting individual signatures from the **Mithril Signers** and aggregate them into a multisignature. The **Mithril Aggregator** uses this ability to provide certified snapshots of the **Cardano** blockchain. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-aggregator) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril_aggregator/index.html) | [:arrow_upper_right:](/aggregator-api)
3434
| **Mithril Client** | The node of the **Mithril Network** responsible for restoring the **Cardano** blockchain on an empty node from a certified snapshot. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-client) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril_client/index.html) | -
3535
| **Mithril Signer** | The node of the **Mithril Network** responsible for producing individual signatures that are collected and aggregated by the **Mithril Aggregator**. | [:arrow_upper_right:](https://github.com/input-output-hk/mithril/tree/main/mithril-signer) | [:arrow_upper_right:](https://mithril.network/rust-doc/mithril_signer/index.html) | -

mithril-aggregator/src/multi_signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub enum ProtocolError {
4848
#[error("codec error: '{0}'")]
4949
Codec(String),
5050

51-
/// Mithril Core library returned an error.
51+
/// Mithril STM library returned an error.
5252
#[error("core error: '{0}'")]
5353
Core(String),
5454

mithril-common/src/crypto_helper/cardano/key_certification.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub enum ProtocolInitializerErrorWrapper {
7979
#[error("KES key cannot be updated for period {0}")]
8080
KesUpdate(KESPeriod),
8181
}
82-
/// Wrapper structure for [MithrilCore:StmInitializer](mithril::stm::StmInitializer).
82+
/// Wrapper structure for [MithrilStm:StmInitializer](mithril::stm::StmInitializer).
8383
/// It now obtains a KES signature over the Mithril key. This allows the signers prove
8484
/// their correct identity with respect to a Cardano PoolID.
8585
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -88,7 +88,7 @@ pub struct StmInitializerWrapper {
8888
kes_signature: Option<ProtocolSignerVerificationKeySignature>, // todo: The option is ONLY for a smooth transition. We have to remove this.
8989
}
9090

91-
/// Wrapper structure for [MithrilCore:KeyReg](mithril::key_reg::KeyReg).
91+
/// Wrapper structure for [MithrilStm:KeyReg](mithril::key_reg::KeyReg).
9292
/// The wrapper not only contains a map between `Mithril vkey <-> Stake`, but also
9393
/// a map `PoolID <-> Stake`. This information is recovered from the node state, and
9494
/// is used to verify the identity of a Mithril signer. Furthermore, the `register` function

mithril-common/src/crypto_helper/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Tools and types to abstract the use of the [Mithril Core library](https://mithril.network/rust-doc/mithril/index.html)
1+
//! Tools and types to abstract the use of the [Mithril STM library](https://mithril.network/rust-doc/mithril_stm/index.html)
22
33
mod cardano;
44
mod codec;

mithril-common/src/crypto_helper/tests_setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Test data builders for Mithril Core types, for testing purpose.
1+
//! Test data builders for Mithril STM types, for testing purpose.
22
use super::cardano::ColdKeyGenerator;
33
use super::{genesis::*, key_encode_hex, types::*, OpCert, SerDeShelleyFileFormat};
44
use crate::certificate_chain::CertificateGenesisProducer;

mithril-common/src/crypto_helper/types.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,43 @@ type D = Blake2b<U32>;
2424
/// The id of a mithril party.
2525
pub type ProtocolPartyId = String;
2626

27-
/// Alias of [MithrilCore:Stake](type@mithril::stm::Stake).
27+
/// Alias of [MithrilStm:Stake](type@mithril::stm::Stake).
2828
pub type ProtocolStake = Stake;
2929

3030
/// A list of [Party Id][ProtocolPartyId] associated with its [Stake][ProtocolStake].
3131
pub type ProtocolStakeDistribution = Vec<(ProtocolPartyId, ProtocolStake)>;
3232

33-
/// Alias of [MithrilCore::StmParameters](struct@mithril::stm::StmParameters).
33+
/// Alias of [MithrilStm::StmParameters](struct@mithril::stm::StmParameters).
3434
pub type ProtocolParameters = StmParameters;
3535

36-
/// Alias of [MithrilCore::Index](type@mithril::stm::Index).
36+
/// Alias of [MithrilStm::Index](type@mithril::stm::Index).
3737
pub type ProtocolLotteryIndex = Index;
3838

39-
/// Alias of [MithrilCore:StmSigner](struct@mithril::stm::StmSigner).
39+
/// Alias of [MithrilStm:StmSigner](struct@mithril::stm::StmSigner).
4040
pub type ProtocolSigner = StmSigner<D>;
4141

42-
/// Alias of a wrapper of [MithrilCore:StmInitializer](struct@mithril::stm::StmInitializer).
42+
/// Alias of a wrapper of [MithrilStm:StmInitializer](struct@mithril::stm::StmInitializer).
4343
pub type ProtocolInitializer = StmInitializerWrapper;
4444

45-
/// Alias of [MithrilCore:StmClerk](struct@mithril::stm::StmClerk).
45+
/// Alias of [MithrilStm:StmClerk](struct@mithril::stm::StmClerk).
4646
pub type ProtocolClerk = StmClerk<D>;
4747

48-
/// Alias of a wrapper of [MithrilCore:KeyReg](struct@mithril::key_reg::KeyReg).
48+
/// Alias of a wrapper of [MithrilStm:KeyReg](struct@mithril::key_reg::KeyReg).
4949
pub type ProtocolKeyRegistration = KeyRegWrapper;
5050

51-
/// Alias of [MithrilCore:StmSig](struct@mithril::stm::StmSig).
51+
/// Alias of [MithrilStm:StmSig](struct@mithril::stm::StmSig).
5252
pub type ProtocolSingleSignature = StmSig;
5353

54-
/// Alias of [MithrilCore:StmAggrSig](struct@mithril::stm::StmAggrSig).
54+
/// Alias of [MithrilStm:StmAggrSig](struct@mithril::stm::StmAggrSig).
5555
pub type ProtocolMultiSignature = StmAggrSig<D>;
5656

57-
/// Alias of [MithrilCore:StmVerificationKeyPoP](type@mithril::stm::StmVerificationKeyPoP).
57+
/// Alias of [MithrilStm:StmVerificationKeyPoP](type@mithril::stm::StmVerificationKeyPoP).
5858
pub type ProtocolSignerVerificationKey = StmVerificationKeyPoP;
5959

6060
/// Alias of [KES:Sum6KesSig](https://github.com/input-output-hk/kes/blob/master/src/kes.rs).
6161
pub type ProtocolSignerVerificationKeySignature = Sum6KesSig;
6262

63-
/// Alias of [MithrilCore:StmAggrVerificationKey](struct@mithril::stm::StmAggrVerificationKey).
63+
/// Alias of [MithrilStm:StmAggrVerificationKey](struct@mithril::stm::StmAggrVerificationKey).
6464
pub type ProtocolAggregateVerificationKey = StmAggrVerificationKey<D>;
6565

6666
/// Alias of [Ed25519:PublicKey](https://docs.rs/ed25519-dalek/latest/ed25519_dalek/struct.PublicKey.html).
@@ -73,17 +73,17 @@ pub type ProtocolGenesisSecretKey = ed25519_dalek::SecretKey;
7373
pub type ProtocolGenesisSignature = ed25519_dalek::Signature;
7474

7575
// Error alias
76-
/// Alias of a wrapper of [MithrilCore:RegisterError](enum@mithril::RegisterError).
76+
/// Alias of a wrapper of [MithrilStm:RegisterError](enum@mithril::RegisterError).
7777
pub type ProtocolRegistrationError = ProtocolRegistrationErrorWrapper;
7878

79-
/// Alias of [MithrilCore:AggregationError](enum@mithril::AggregationError).
79+
/// Alias of [MithrilStm:AggregationError](enum@mithril::AggregationError).
8080
pub type ProtocolAggregationError = AggregationError;
8181

8282
// Test only
83-
/// (Test only) Alias of [MithrilCore:StmInitializer](struct@mithril::stm::StmInitializer).
83+
/// (Test only) Alias of [MithrilStm:StmInitializer](struct@mithril::stm::StmInitializer).
8484
#[cfg(any(test, feature = "allow_skip_signer_certification"))]
8585
pub type ProtocolInitializerNotCertified = StmInitializer;
8686

87-
/// (Test only) Alias of [MithrilCore:KeyReg](struct@mithril::key_reg::KeyReg). (Test only)
87+
/// (Test only) Alias of [MithrilStm:KeyReg](struct@mithril::key_reg::KeyReg). (Test only)
8888
#[cfg(any(test, feature = "allow_skip_signer_certification"))]
8989
pub type ProtocolKeyRegistrationNotCertified = KeyReg;

mithril-common/src/entities/single_signatures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl SingleSignatures {
3131
}
3232
}
3333

34-
/// Convert this [SingleSignatures] to its corresponding [MithrilCore Signature][ProtocolSingleSignature].
34+
/// Convert this [SingleSignatures] to its corresponding [MithrilStm Signature][ProtocolSingleSignature].
3535
pub fn to_protocol_signature(&self) -> Result<ProtocolSingleSignature, String> {
3636
match key_decode_hex::<ProtocolSingleSignature>(&self.signature) {
3737
Ok(signature) => Ok(signature),

mithril-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! Provide:
66
//! - A way to store data with the [store] types
77
//! - [Digester][digesters] to compute mithril digest from a Cardano database
8-
//! - Helpers for the [Mithril Core](https://mithril.network/rust-doc/mithril/index.html)
8+
//! - Helpers for the [Mithril STM](https://mithril.network/rust-doc/mithril_stm/index.html)
99
//! lib with the [crypto_helper].
1010
//! - A [certificate chain] used to validate the Certificate Chain created by an aggregator
1111
//! - The [entities] used by, and exchanged between, the aggregator, signers and client.

0 commit comments

Comments
 (0)