Expand description
Shared datatypes and traits used by Mithril rust projects
Provide:
- Digester to compute mithril digest from a Cardano database
- Helpers for the Mithril STM lib with the crypto_helper.
- certificate chain used to validate the Certificate Chain created by an aggregator
- The entities used by, and exchanged between, the aggregator, signers and client.
Re-exports§
pub use entities::CardanoNetwork;
pub use entities::MagicId;
Modules§
- api_
version - API Version provider service
- cardano_
block_ scanner - The module used for parsing Cardano transactions
- certificate_
chain - Tools to retrieve, validate the Certificate Chain created by an aggregator
- chain_
observer - Tools to request metadata, like the current epoch or the stake distribution, from the Cardano
- chain_
reader - Tools to read chain blocks sequentially
- crypto_
helper - Tools and types to abstract the use of the Mithril STM library
- digesters
- Tools to compute mithril digest from a Cardano node database.
- entities
- The entities used by, and exchanged between, the aggregator, signers and client.
- era
- The module used for handling eras
- logging
- Logging utilities for the Mithril project.
- messages
- Messages module This module aims at providing shared structures for API communications.
- protocol
- Protocol module
- signable_
builder - The module used for building signables
- test_
utils - Test utilities
Macros§
- assert_
dir_ eq - Compare a directory against a string representing its expected structure or against another directory.
- assert_
same_ json - Compare two json strings ignoring keys order
- current_
function - Returns the name of the function that called this macro.
- current_
function_ path - Returns the path of the function that called this macro.
- era_
deprecate - Macro used to mark the code that should be cleaned up when the new era is activated
- temp_
dir - Return a temporary directory based on the current function name.
- temp_
dir_ create - Create and return a temporary directory based on the current function name.
Structs§
- Mithril
Ticker Service - A TickerService using a ChainObserver and a ImmutableFileObserver.
Constants§
- MITHRIL_
AGGREGATOR_ VERSION_ HEADER - Mithril aggregator node version header name
- MITHRIL_
API_ VERSION_ HEADER - Mithril API protocol version header name
- MITHRIL_
ORIGIN_ TAG_ HEADER - Mithril origin of the request
- MITHRIL_
SIGNER_ VERSION_ HEADER - Mithril signer node version header name
Traits§
- Ticker
Service - TickerService