Module mithril_signer::services
source · Expand description
§Services
This module regroups services. Services are adapters in charge of the different bounded contexts of the application:
- Aggregator Client: communicate with the Aggregator
- Cardano Transactions: handle Cardano transactions (import, preload, etc.)
- Single Signer: create single signatures
- Upkeep: perform maintenance tasks
Each service is defined by a public API (a trait) that is used in the controllers (runtimes).
Structs§
- AggregatorHTTPClient is a http client for an aggregator
- Import and store CardanoTransaction.
- CardanoTransactionsPreloaderActivationSigner
- Implementation of the epoch service.
- This is responsible for creating new instances of ProtocolInitializer.
- Implementation of the SingleSigner.
- Implementation of the Certifier Service for the Mithril Signer.
- SignableSeedBuilder signer implementation
- Simple wrapper to the EpochService to implement the SignedEntityConfigProvider trait.
- Implementation of the upkeep service for the signer.
- A decorator of TransactionsImporter that does the import by chunks
- A decorator of TransactionsImporter that prunes the transactions older than a given number of blocks after running the import.
- A decorator of TransactionsImporter that vacuums the database after running the import.
Enums§
- Error structure for the Aggregator Client.
- Errors dedicated to the EpochService.
- SingleSigner error structure.
Traits§
- Trait for mocking and testing a
AggregatorClient
- Certifier Service
- Define the task responsible for pruning a datasource below a certain epoch threshold.
- Service that aggregates all data that don’t change in a given epoch.
- Trait to get the highest transaction block number
- Publishes computed single signatures to a third party.
- Trait to store beacons that have been signed in order to avoid signing them twice.
- Trait to provide the current signed entity configuration that can change over time.
- The SingleSigner is the structure responsible for issuing SingleSignatures.
- Cardano transactions pruner
- Cardano transactions store
- Define the service responsible for the upkeep of the application.