Crate mithril_signer
source ·Expand description
Mithril Signer crate documentation
This crate is used by Cardano nodes to participate to Mithril signatures. It proposes tools to communicate with Mithril aggregators and to issue Single Signatures. See the Mithril documentation for more information on how it works.
Re-exports§
pub use metrics::*;
Modules§
- database module. This module contains the entities definition tied with database representation with their associated providers.
- metrics module. This module contains the signer metrics service and metrics server.
Structs§
- AggregatorHTTPClient is a http client for an aggregator
- Import and store [CardanoTransaction].
- Client configuration
- Default configuration with all the default values for configurations.
- Adapter to convert [EpochSettingsMessage] to [EpochSettings].
- Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
- This is responsible of creating new instances of ProtocolInitializer.
- Implementation of the SingleSigner.
- Create a SignerService instance for Production environment.
- Implementation of the ProtocolInitializerStorer
- Controller methods for the Signer’s state machine.
- This structure groups all the services required by the state machine.
- The state machine is responsible of the execution of the signer automate.
- Adapter to create [RegisterSignerMessage] from [Signer] instance.
Enums§
- Error structure for the Aggregator Client.
- This type represents the errors thrown from the Runner.
- RuntimeError Error kinds tied to their faith in the state machine.
- Different possible states of the state machine.
- SingleSigner error structure.
Traits§
- Trait for mocking and testing a
AggregatorClient
- Store the ProtocolInitializer used for each Epoch. This is useful because protocol parameters and stake distribution change over time.
- This trait is mainly intended for mocking.
- The ServiceBuilder is intended to manage Services instance creation. The goal of this is to put all this code out of the way of business code.
- The SingleSigner is the structure responsible of issuing SingleSignatures.
- Cardano transactions store