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 for Concatenation
40pub type HexEncodedVerificationKeyForConcatenation = HexEncodedKey;
41
42/// Hex encoded Verification Key Signature for Concatenation
43pub type HexEncodedVerificationKeySignatureForConcatenation = HexEncodedKey;
44
45/// Hex encoded Verification Key for SNARK
46pub type HexEncodedVerificationKeyForSnark = HexEncodedKey;
47
48/// Hex encoded Verification Key Signature for SNARK
49pub type HexEncodedVerificationKeySignatureForSnark = HexEncodedKey;
50
51/// Hex encoded Operational Certificate
52pub type HexEncodedOpCert = HexEncodedKey;
53
54/// Hex encoded Genesis Secret Key
55pub type HexEncodedGenesisSecretKey = HexEncodedKey;
56
57/// Hex encoded Genesis Verification Key
58pub type HexEncodedGenesisVerificationKey = HexEncodedKey;
59
60/// Hex encoded Sha256 Digest
61pub type HexEncodedDigest = HexEncodedKey;
62
63/// Hex encoded Era Markers Secret Key
64pub type HexEncodedEraMarkersSecretKey = HexEncodedKey;
65
66/// Number of SPOs
67pub type TotalSPOs = u32;
68
69/// Cardano Era
70pub type CardanoEra = String;