mithril_common/crypto_helper/ed25519_alias.rs
1use crate::crypto_helper::ed25519::*;
2
3pub mod genesis {
4 use super::*;
5
6 /// A protocol Genesis verifier secret key
7 pub type ProtocolGenesisSecretKey = Ed25519SecretKey;
8 /// A protocol Genesis verification key
9 pub type ProtocolGenesisVerificationKey = Ed25519VerificationKey;
10 /// A protocol Genesis signature
11 pub type ProtocolGenesisSignature = Ed25519Signature;
12 /// A protocol Genesis Signer that is responsible for signing the
13 /// [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
14 pub type ProtocolGenesisSigner = Ed25519Signer;
15 /// A protocol Genesis Verifier that is responsible for verifying the
16 /// [Genesis Certificate](https://mithril.network/doc/mithril/mithril-protocol/certificates#the-certificate-chain-design)
17 pub type ProtocolGenesisVerifier = Ed25519Verifier;
18 /// [ProtocolGenesisSigner] and [ProtocolGenesisVerifier] related errors.
19 pub type ProtocolGenesisError = Ed25519VerifierError;
20}
21
22pub mod era {
23 use super::*;
24
25 /// Era markers verifier secret key
26 pub type EraMarkersVerifierSecretKey = Ed25519SecretKey;
27 /// Era markers verifier verification key
28 pub type EraMarkersVerifierVerificationKey = Ed25519VerificationKey;
29 /// Era markers verifier signature
30 pub type EraMarkersVerifierSignature = Ed25519Signature;
31 /// A cryptographic signer that is responsible for signing the EraMarkers
32 pub type EraMarkersSigner = Ed25519Signer;
33 /// An era markers verifier that checks the authenticity of era markers stored on the chain
34 pub type EraMarkersVerifier = Ed25519Verifier;
35 /// [EraMarkersSigner] and [EraMarkersVerifier] related errors.
36 pub type EraMarkersVerifierError = Ed25519VerifierError;
37}
38
39pub mod manifest {
40 use super::*;
41
42 /// Manifest verifier secret key
43 pub type ManifestVerifierSecretKey = Ed25519SecretKey;
44 /// Manifest verifier verification key
45 pub type ManifestVerifierVerificationKey = Ed25519VerificationKey;
46 /// Manifest signature
47 pub type ManifestSignature = Ed25519Signature;
48 /// A cryptographic signer that is responsible for signing the Manifest
49 pub type ManifestSigner = Ed25519Signer;
50 /// A manifest verifier that checks the authenticity of a manifest
51 pub type ManifestVerifier = Ed25519Verifier;
52 /// [ManifestSigner] and [ManifestVerifier] related errors.
53 pub type ManifestVerifierError = Ed25519VerifierError;
54}