Module mithril_common::entities
source · Expand description
The entities used by, and exchanged between, the aggregator, signers and client.
Structs§
- BlockNumber is the block number of a Cardano transaction.
- BlockRange for the Cardano chain
- A continuous iterable sequence of block ranges.
- A point in the Cardano chain at which a Mithril certificate of the Cardano Database should be produced.
- Cardano Stake Distribution
- Cardano transaction representation
- A cryptographic proof of a set of Cardano transactions is included in the global Cardano transactions set
- Configuration for the signing of Cardano transactions
- Snapshot of a set of Cardano transactions
- Certificate represents a Mithril certificate embedding a Mithril STM multisignature
- CertificateMetadata represents the metadata associated to a Certificate
- CertificatePending represents a pending certificate in the process of production
- The Cardano chain point which is used to identify a specific point in the Cardano chain.
- Representation of a Client Error raised by an http server
- Epoch represents a Cardano epoch
- Mithril Stake Distribution
- ProtocolMessage represents a message that is signed (or verified) by the Mithril protocol
- Protocol cryptographic parameters
- Representation of a Server Error raised by a http server
- Aggregate for signed entity
- Convert TimePoint to SignedEntityType and list allowed signed entity types and discriminants.
- An iterator over the variants of SignedEntityTypeDiscriminants
- Signer represents a signing participant in the network
- Signer represents a signing party in the network (including its stakes)
- SingleSignatures represent single signatures originating from a participant in the network for a digest at won lottery indexes
- Snapshot represents a snapshot file and its metadata
- This represents a stakeholder.
- TimePoint aggregates all types of point in the Cardano chain and is used by the state machines for their computations.
Enums§
- The Cardano Network that is being targeted
- The signature of a Certificate
- Compression algorithm for the snapshot archive artifacts.
- EpochError is an error triggered by an Epoch
- The key of a ProtocolMessage
- The signed entity type that represents a type of data signed by the Mithril protocol Note: Each variant of this enum must be associated to an entry in the
signed_entity_type
table of the signer/aggregator nodes. The variant are identified by their discriminant (i.e. index in the enum), thus the modification of this type should only ever consist of appending new variants. - Auto-generated discriminant enum variants
- Status of the authentication of the signer that emitted the signature
Type Aliases§
- Hash of a Cardano Block
- BlockRangeLength is the length of a block range.
- Cardano Era
- Hex encoded Aggregate Verification Key
- Hex encoded Sha256 Digest
- Hex encoded Era Markers Secret Key
- Hex encoded Genesis Secret Key
- Hex encoded Genesis Verification Key
- Hex encoded key
- Hex encoded key slice
- Hex encoded Operational Certificate
- Hex encoded Single Signature
- Hex encoded Verification Key
- Hex encoded Verification Key Signature
- ImmutableFileName represents the filename, with extension, of a immutable file in the Cardano node database
- ImmutableFileNumber represents the id of immutable files in the Cardano node database
- LotteryIndex represents the index of a Mithril single signature lottery
- Cardano Network magic identifier
- PartyId represents a signing party in Mithril protocol
- The value of a ProtocolMessage
- Protocol version
- Stake represents the stakes of a participant in the Cardano chain
- StakeDistribution represents the stakes of multiple participants in the Cardano chain
- Number of SPOs
- TransactionHash is the unique identifier of a cardano transaction.