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