Skip to content

Commit 6c5b4e3

Browse files
committed
Fix broken links in rust documentations
1 parent d40f493 commit 6c5b4e3

File tree

10 files changed

+40
-43
lines changed

10 files changed

+40
-43
lines changed

mithril-client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#![warn(missing_docs)]
22

33
//! Define everything necessary to list, download, and validate snapshots from a
4-
//! [Mithril Aggregator](https://mithril.network/mithril-aggregator/doc/mithril_aggregator/index.html).
4+
//! [Mithril Aggregator](https://mithril.network/rust-doc/mithril_aggregator/index.html).
55
//!
66
//! To query an aggregator for snapshots & certificate use the [AggregatorHTTPClient] that implement
77
//! the [AggregatorHandler] trait.
88
//!
99
//! To list, download, and validate snapshots use the [Runtime].
1010
//! You must initialize it by giving it a CertificateVerifier, a ProtocolGenesisVerifier and a [AggregatorHandler], and a
11-
//! [Digester](https://mithril.network/mithril-common/doc/mithril_common/digesters/trait.Digester.html)
11+
//! [Digester](mithril_common::digesters::ImmutableDigester)
1212
//! implementations using the `with_xxx` methods.
1313
1414
mod aggregator;

mithril-client/src/runtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub enum RuntimeError {
3030
AggregatorHandler(#[from] AggregatorHandlerError),
3131

3232
/// Error raised when a CertificateRetrieverError tries to retrieve a
33-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
33+
/// [certificate](mithril_common::entities::Certificate)
3434
#[error("certificate retriever error: '{0}'")]
3535
CertificateRetriever(#[from] CertificateRetrieverError),
3636

@@ -39,7 +39,7 @@ pub enum RuntimeError {
3939
ImmutableDigester(#[from] ImmutableDigesterError),
4040

4141
/// Error raised when the digest stored in the signed message doesn't match the
42-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
42+
/// [certificate](mithril_common::entities::Certificate)
4343
/// hash.
4444
#[error("digest doesn't match error: '{0}'")]
4545
DigestDoesntMatch(String),

mithril-common/src/certificate_chain/certificate_retriever.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ use mockall::automock;
1010
/// [CertificateRetriever] related errors.
1111
#[derive(Error, Debug)]
1212
pub enum CertificateRetrieverError {
13-
/// Error raised when a [CertificateRetriever] tries to retrieve a [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
13+
/// Error raised when a [CertificateRetriever] tries to retrieve a [Certificate]
1414
#[error("general error: '{0}'")]
1515
General(String),
1616
}
1717

18-
/// CertificateRetriever is in charge of retrieving a Certificate given its hash
18+
/// CertificateRetriever is in charge of retrieving a [Certificate] given its hash
1919
#[cfg_attr(test, automock)]
2020
#[async_trait]
2121
pub trait CertificateRetriever: Sync + Send {
22-
/// Get certificate details
22+
/// Get [Certificate] details
2323
async fn get_certificate_details(
2424
&self,
2525
certificate_hash: &str,

mithril-common/src/certificate_chain/certificate_verifier.rs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,24 @@ pub enum CertificateVerifierError {
3131
#[error("codec genesis error: '{0}'")]
3232
CodecGenesis(String),
3333

34-
/// Error raised when a CertificateRetriever tries to retrieve
35-
/// a [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
34+
/// Error raised when a CertificateRetriever tries to retrieve a [Certificate].
3635
#[error("certificate retriever error: '{0}'")]
3736
CertificateRetriever(#[from] CertificateRetrieverError),
3837

39-
/// Error raised when the Genesis Signature stored in a
40-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
41-
/// is invalid.
38+
/// Error raised when the Genesis Signature stored in a [Certificate] is invalid.
4239
#[error("certificate genesis error: '{0}'")]
4340
CertificateGenesis(#[from] ProtocolGenesisError),
4441

45-
/// Error raised when the hash stored in a
46-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
47-
/// doesn't match a recomputed hash.
42+
/// Error raised when the hash stored in a [Certificate] doesn't match a recomputed hash.
4843
#[error("certificate hash unmatch error")]
4944
CertificateHashUnmatch,
5045

51-
/// Error raised when validating the certificate chain if a previous
52-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
53-
/// hash isn't equal to the current certificate `previous_hash`.
46+
/// Error raised when validating the certificate chain if a previous [Certificate] hash isn't
47+
/// equal to the current certificate `previous_hash`.
5448
#[error("certificate chain previous hash unmatch error")]
5549
CertificateChainPreviousHashUnmatch,
5650

57-
/// Error raised when validating the certificate chain if the current
58-
/// [certificate](https://mithril.network/mithril-common/doc/mithril_common/entities/struct.Certificate.html)
51+
/// Error raised when validating the certificate chain if the current [Certificate]
5952
/// `aggregate_verification_key` doesn't match the previous `aggregate_verification_key` (if
6053
/// the certificates are on the same epoch) or the previous `next_aggregate_verification_key`
6154
/// (if the certificates are on different epoch).
@@ -67,7 +60,8 @@ pub enum CertificateVerifierError {
6760
CertificateChainInfiniteLoop,
6861
}
6962

70-
/// CertificateVerifier is the cryptographic engine in charge of verifying multi signatures and certificates
63+
/// CertificateVerifier is the cryptographic engine in charge of verifying multi signatures and
64+
/// [certificates](Certificate)
7165
#[cfg_attr(test, automock)]
7266
#[async_trait]
7367
pub trait CertificateVerifier: Send + Sync {

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

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

88-
/// Wrapper structure for [MithrilCore:KeyReg](https://mithril.network/mithril-core/doc/mithril/key_reg/struct.KeyReg.html).
88+
/// Wrapper structure for [MithrilCore:KeyReg](mithril::key_reg::KeyReg).
8989
/// The wrapper not only contains a map between `Mithril vkey <-> Stake`, but also
9090
/// a map `PoolID <-> Stake`. This information is recovered from the node state, and
9191
/// is used to verify the identity of a Mithril signer. Furthermore, the `register` function

mithril-common/src/crypto_helper/genesis.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub enum ProtocolGenesisError {
1414
SignatureVerification(#[from] SignatureError),
1515
}
1616

17-
/// A protocol Genesis Signer that is responsible for signing the [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
17+
/// A protocol Genesis Signer that is responsible for signing the
18+
/// [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
1819
#[derive(Debug, Serialize, Deserialize)]
1920
pub struct ProtocolGenesisSigner {
2021
pub(crate) secret_key: ProtocolGenesisSecretKey,
@@ -76,7 +77,8 @@ impl ProtocolGenesisSigner {
7677
}
7778
}
7879

79-
/// A protocol Genesis Verifier that is responsible for verifying the [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
80+
/// A protocol Genesis Verifier that is responsible for verifying the
81+
/// [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
8082
#[derive(Debug, Serialize, Deserialize, Clone)]
8183
pub struct ProtocolGenesisVerifier {
8284
pub(crate) verification_key: ProtocolGenesisVerificationKey,

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/mithril-core/doc/mithril/index.html)
1+
//! Tools and types to abstract the use of the [Mithril Core library](https://mithril.network/rust-doc/mithril/index.html)
22
33
mod cardano;
44
mod codec;

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](https://mithril.network/mithril-core/doc/mithril/stm/type.Stake.html).
27+
/// Alias of [MithrilCore: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](https://mithril.network/mithril-core/doc/mithril/stm/struct.StmParameters.html).
33+
/// Alias of [MithrilCore::StmParameters](struct@mithril::stm::StmParameters).
3434
pub type ProtocolParameters = StmParameters;
3535

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

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

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

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

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

51-
/// Alias of [MithrilCore:StmSig](https://mithril.network/mithril-core/doc/mithril/stm/struct.StmSig.html).
51+
/// Alias of [MithrilCore:StmSig](struct@mithril::stm::StmSig).
5252
pub type ProtocolSingleSignature = StmSig<D>;
5353

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

57-
/// Alias of [MithrilCore:StmVerificationKeyPoP](https://mithril.network/mithril-core/doc/mithril/stm/type.StmVerificationKeyPoP.html).
57+
/// Alias of [MithrilCore: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](https://mithril.network/mithril-core/doc/mithril/stm/struct.StmAggrVerificationKey.html).
63+
/// Alias of [MithrilCore: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](https://mithril.network/mithril-core/doc/mithril/error/enum.RegisterError.html).
76+
/// Alias of a wrapper of [MithrilCore:RegisterError](enum@mithril::RegisterError).
7777
pub type ProtocolRegistrationError = ProtocolRegistrationErrorWrapper;
7878

79-
/// Alias of [MithrilCore:AggregationError](https://mithril.network/mithril-core/doc/mithril/error/enum.AggregationError.html).
79+
/// Alias of [MithrilCore:AggregationError](enum@mithril::AggregationError).
8080
pub type ProtocolAggregationError = AggregationError;
8181

8282
// Test only
83-
/// (Test only) Alias of [MithrilCore:StmInitializer](https://mithril.network/mithril-core/doc/mithril/stm/struct.StmInitializer.html).
83+
/// (Test only) Alias of [MithrilCore: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](https://mithril.network/mithril-core/doc/mithril/key_reg/struct.KeyReg.html). (Test only)
87+
/// (Test only) Alias of [MithrilCore: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/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/mithril-core/doc/mithril/index.html)
8+
//! - Helpers for the [Mithril Core](https://mithril.network/rust-doc/mithril/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.

mithril-signer/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
//!
44
//! This crate is used by Cardano nodes to participate to Mithril signatures.
55
//! It proposes tools to communicate with Mithril aggregators and to issue Single Signatures.
6-
//! See the [Mithril documentation](https://mithril.network/doc/manual/developer-docs/nodes/mithril-signer) for more information on how it works.
6+
//! See the [Mithril documentation](https://mithril.network/doc/manual/developer-docs/nodes/mithril-signer)
7+
//! for more information on how it works.
78
89
mod certificate_handler;
910
mod entities;

0 commit comments

Comments
 (0)