mithril_common/entities/
type_alias.rs

1use std::collections::BTreeMap;
2
3/// ImmutableFileNumber represents the id of immutable files in the Cardano node database
4pub type ImmutableFileNumber = u64;
5
6/// ImmutableFileName represents the filename, with extension, of a immutable file in the Cardano node database
7pub type ImmutableFileName = String;
8
9/// PartyId represents a signing party in Mithril protocol
10pub type PartyId = String;
11
12/// Stake represents the stakes of a participant in the Cardano chain
13pub type Stake = u64;
14
15/// StakeDistribution represents the stakes of multiple participants in the Cardano chain
16pub type StakeDistribution = BTreeMap<PartyId, Stake>;
17
18/// LotteryIndex represents the index of a Mithril single signature lottery
19pub type LotteryIndex = u64;
20
21/// Cardano Network magic identifier
22pub type MagicId = u64;
23
24/// Protocol version
25pub type ProtocolVersion = String;
26
27/// Hex encoded key
28pub type HexEncodedKey = String;
29
30/// Hex encoded key slice
31pub type HexEncodedKeySlice<'a> = &'a str;
32
33/// Hex encoded Single Signature
34pub type HexEncodedSingleSignature = HexEncodedKey;
35
36/// Hex encoded Aggregate Verification Key
37pub type HexEncodedAggregateVerificationKey = HexEncodedKey;
38
39/// Hex encoded Verification Key
40pub type HexEncodedVerificationKey = HexEncodedKey;
41
42/// Hex encoded Verification Key Signature
43pub type HexEncodedVerificationKeySignature = HexEncodedKey;
44
45/// Hex encoded Operational Certificate
46pub type HexEncodedOpCert = HexEncodedKey;
47
48/// Hex encoded Genesis Secret Key
49pub type HexEncodedGenesisSecretKey = HexEncodedKey;
50
51/// Hex encoded Genesis Verification Key
52pub type HexEncodedGenesisVerificationKey = HexEncodedKey;
53
54/// Hex encoded Sha256 Digest
55pub type HexEncodedDigest = HexEncodedKey;
56
57/// Hex encoded Era Markers Secret Key
58pub type HexEncodedEraMarkersSecretKey = HexEncodedKey;
59
60/// Number of SPOs
61pub type TotalSPOs = u32;
62
63/// Cardano Era
64pub type CardanoEra = String;