mithril_common/entities/
type_alias.rs

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
55
56
57
58
59
60
61
62
63
64
use std::collections::BTreeMap;

/// ImmutableFileNumber represents the id of immutable files in the Cardano node database
pub type ImmutableFileNumber = u64;

/// ImmutableFileName represents the filename, with extension, of a immutable file in the Cardano node database
pub type ImmutableFileName = String;

/// PartyId represents a signing party in Mithril protocol
pub type PartyId = String;

/// Stake represents the stakes of a participant in the Cardano chain
pub type Stake = u64;

/// StakeDistribution represents the stakes of multiple participants in the Cardano chain
pub type StakeDistribution = BTreeMap<PartyId, Stake>;

/// LotteryIndex represents the index of a Mithril single signature lottery
pub type LotteryIndex = u64;

/// Cardano Network magic identifier
pub type MagicId = u64;

/// Protocol version
pub type ProtocolVersion = String;

/// Hex encoded key
pub type HexEncodedKey = String;

/// Hex encoded key slice
pub type HexEncodedKeySlice<'a> = &'a str;

/// Hex encoded Single Signature
pub type HexEncodedSingleSignature = HexEncodedKey;

/// Hex encoded Aggregate Verification Key
pub type HexEncodedAggregateVerificationKey = HexEncodedKey;

/// Hex encoded Verification Key
pub type HexEncodedVerificationKey = HexEncodedKey;

/// Hex encoded Verification Key Signature
pub type HexEncodedVerificationKeySignature = HexEncodedKey;

/// Hex encoded Operational Certificate
pub type HexEncodedOpCert = HexEncodedKey;

/// Hex encoded Genesis Secret Key
pub type HexEncodedGenesisSecretKey = HexEncodedKey;

/// Hex encoded Genesis Verification Key
pub type HexEncodedGenesisVerificationKey = HexEncodedKey;

/// Hex encoded Sha256 Digest
pub type HexEncodedDigest = HexEncodedKey;

/// Hex encoded Era Markers Secret Key
pub type HexEncodedEraMarkersSecretKey = HexEncodedKey;

/// Number of SPOs
pub type TotalSPOs = u32;

/// Cardano Era
pub type CardanoEra = String;