Function mithril_signer::database::migration::get_migrations
source · pub fn get_migrations() -> Vec<SqlMigration>
Expand description
Get all the migrations required by this version of the software. +
Function mithril_signer::database::migration::get_migrations
source · pub fn get_migrations() -> Vec<SqlMigration>
Expand description
Get all the migrations required by this version of the software. There shall be one migration per database version. There could be several statements per migration.
Enum mithril_signer::RunnerError
source · pub enum RunnerError {
NoValueError(String),
NoStakeForSelf(),
- NoStakeForSigner(PartyId),
+ NoStakeForSigner(PartyId),
FileParse(String),
}
Expand description
This type represents the errors thrown from the Runner.
Variants§
NoValueError(String)
Value was expected from a subsystem but None was returned.
NoStakeForSelf()
Could not associate my node with a stake.
-NoStakeForSigner(PartyId)
Could not find the stake for one of the signers.
+NoStakeForSigner(PartyId)
Could not find the stake for one of the signers.
FileParse(String)
Parse file error
Trait Implementations§
source§impl Clone for RunnerError
impl Clone for RunnerError
source§fn clone(&self) -> RunnerError
fn clone(&self) -> RunnerError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RunnerError
impl Debug for RunnerError
source§impl Display for RunnerError
impl Display for RunnerError
source§impl Error for RunnerError
impl Error for RunnerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<RunnerError> for RuntimeError
impl From<RunnerError> for RuntimeError
source§fn from(value: RunnerError) -> Self
fn from(value: RunnerError) -> Self
source§impl PartialEq<RunnerError> for RunnerError
impl PartialEq<RunnerError> for RunnerError
source§fn eq(&self, other: &RunnerError) -> bool
fn eq(&self, other: &RunnerError) -> bool
self
and other
values to be equal, and is used
by ==
.1.0.0 · source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
!=
. The default implementation is almost always
diff --git a/rust-doc/mithril_signer/enum.RuntimeError.html b/rust-doc/mithril_signer/enum.RuntimeError.html
index d7ee5daf8a0..aac72380a14 100644
--- a/rust-doc/mithril_signer/enum.RuntimeError.html
+++ b/rust-doc/mithril_signer/enum.RuntimeError.html
@@ -1,24 +1,24 @@
Enum mithril_signer::RuntimeError
source · pub enum RuntimeError {
KeepState {
message: String,
- nested_error: Option<StdError>,
+ nested_error: Option<StdError>,
},
Critical {
message: String,
- nested_error: Option<StdError>,
+ nested_error: Option<StdError>,
},
}
Expand description
RuntimeError Error kinds tied to their faith in the state machine.
Variants§
KeepState
Fields
KeepState error means the runtime will keep its state and try to cycle again.
Critical
Fields
Critical error means the runtime will exit and the software will return an error code.
Implementations§
source§impl RuntimeError
impl RuntimeError
sourcepub fn is_critical(&self) -> bool
pub fn is_critical(&self) -> bool
Easy matching Critical errors.
-Trait Implementations§
source§impl Debug for RuntimeError
impl Debug for RuntimeError
source§impl Display for RuntimeError
impl Display for RuntimeError
source§impl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<EpochError> for RuntimeError
impl From<EpochError> for RuntimeError
source§fn from(value: EpochError) -> Self
fn from(value: EpochError) -> Self
source§impl From<RunnerError> for RuntimeError
impl From<RunnerError> for RuntimeError
source§fn from(value: RunnerError) -> Self
fn from(value: RunnerError) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
Trait Implementations§
source§impl Debug for RuntimeError
impl Debug for RuntimeError
source§impl Display for RuntimeError
impl Display for RuntimeError
source§impl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<EpochError> for RuntimeError
impl From<EpochError> for RuntimeError
source§impl From<RunnerError> for RuntimeError
impl From<RunnerError> for RuntimeError
source§fn from(value: RunnerError) -> Self
fn from(value: RunnerError) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
source§impl<T> Az for T
impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/enum.SignerState.html b/rust-doc/mithril_signer/enum.SignerState.html
index 62280f704b5..cf016230a59 100644
--- a/rust-doc/mithril_signer/enum.SignerState.html
+++ b/rust-doc/mithril_signer/enum.SignerState.html
@@ -1,25 +1,25 @@
SignerState in mithril_signer - Rust Enum mithril_signer::SignerState
source · pub enum SignerState {
Init,
Unregistered {
- epoch: Epoch,
+ epoch: Epoch,
},
Registered {
- epoch: Epoch,
+ epoch: Epoch,
},
Signed {
- epoch: Epoch,
- signed_entity_type: SignedEntityType,
+ epoch: Epoch,
+ signed_entity_type: SignedEntityType,
},
}
Expand description
Different possible states of the state machine.
Variants§
§Init
Starting state
-§Unregistered
Fields
§epoch: Epoch
Current Epoch
+§Unregistered
Fields
§epoch: Epoch
Current Epoch
Hold the latest known epoch in order to help synchronisation
with the aggregator
-§Registered
Fields
§epoch: Epoch
Epoch when Signer may sign.
+§Registered
Fields
§epoch: Epoch
Epoch when Signer may sign.
Registered
state. The Signer has successfuly registered against the
Aggregator for this Epoch, it is now able to sign.
-§Signed
Fields
§signed_entity_type: SignedEntityType
Entity type that is signed
+§Signed
Fields
§epoch: Epoch
Epoch when Signer signed.
+§signed_entity_type: SignedEntityType
Entity type that is signed
Signed
state. The Signer has signed the message for the
current pending certificate.
Implementations§
source§impl SignerState
sourcepub fn is_init(&self) -> bool
Returns true
if the state in Init
diff --git a/rust-doc/mithril_signer/enum.SingleSignerError.html b/rust-doc/mithril_signer/enum.SingleSignerError.html
index 6ad21f0617a..7b7f5ae20b6 100644
--- a/rust-doc/mithril_signer/enum.SingleSignerError.html
+++ b/rust-doc/mithril_signer/enum.SingleSignerError.html
@@ -1,11 +1,11 @@
SingleSignerError in mithril_signer - Rust pub enum SingleSignerError {
ProtocolSignerCreationFailure(String),
- SignatureFailed(StdError),
- AggregateVerificationKeyComputationFailed(StdError),
+ SignatureFailed(StdError),
+ AggregateVerificationKeyComputationFailed(StdError),
}
Expand description
SingleSigner error structure.
Variants§
§ProtocolSignerCreationFailure(String)
Cryptographic Signer creation error.
-§SignatureFailed(StdError)
Signature Error
-§AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
+§SignatureFailed(StdError)
Signature Error
+§AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
Trait Implementations§
source§impl Debug for SingleSignerError
source§impl Display for SingleSignerError
source§impl Error for SingleSignerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for SingleSignerError
§impl Send for SingleSignerError
§impl Sync for SingleSignerError
§impl Unpin for SingleSignerError
§impl UnwindSafe for SingleSignerError
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/index.html b/rust-doc/mithril_signer/index.html
index 093770cc23b..df38175a5b2 100644
--- a/rust-doc/mithril_signer/index.html
+++ b/rust-doc/mithril_signer/index.html
@@ -5,7 +5,7 @@
for more information on how it works.
Modules
- database module.
This module contains the entities definition tied with database
-representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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
+representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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.
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html b/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
index 2330fd49f2f..b44b72633b5 100644
--- a/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
+++ b/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
@@ -2,7 +2,7 @@
Implementations§
source§impl AggregatorHTTPClient
sourcepub fn new(
aggregator_endpoint: String,
relay_endpoint: Option<String>,
- api_version_provider: Arc<APIVersionProvider>
+ api_version_provider: Arc<APIVersionProvider>
) -> Self
AggregatorHTTPClient factory
sourcepub fn prepare_request_builder(
&self,
@@ -10,23 +10,23 @@
) -> RequestBuilder
Forge a client request adding protocol version in the headers.
Trait Implementations§
source§impl AggregatorClient for AggregatorHTTPClient
source§fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregatorsource§fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregatorsource§fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.source§fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/struct.Configuration.html b/rust-doc/mithril_signer/struct.Configuration.html
index b54a760e59b..3ea6a6fb31a 100644
--- a/rust-doc/mithril_signer/struct.Configuration.html
+++ b/rust-doc/mithril_signer/struct.Configuration.html
@@ -5,7 +5,7 @@
pub network: String,
pub aggregator_endpoint: String,
pub relay_endpoint: Option<String>,
- pub party_id: Option<PartyId>,
+ pub party_id: Option<PartyId>,
pub run_interval: u64,
pub db_directory: PathBuf,
pub data_stores_directory: PathBuf,
@@ -14,7 +14,7 @@
pub operational_certificate_path: Option<PathBuf>,
pub disable_digests_cache: bool,
pub reset_digests_cache: bool,
- pub era_reader_adapter_type: EraReaderAdapterType,
+ pub era_reader_adapter_type: EraReaderAdapterType,
pub era_reader_adapter_params: Option<String>,
}Expand description
Client configuration
Fields§
§cardano_cli_path: PathBuf
Cardano CLI tool path
@@ -25,7 +25,7 @@
§network: String
Cardano network
§aggregator_endpoint: String
Aggregator endpoint
§relay_endpoint: Option<String>
Relay endpoint
-§party_id: Option<PartyId>
Party Id
+§party_id: Option<PartyId>
Party Id
§run_interval: u64
Run Interval
§db_directory: PathBuf
Directory to snapshot
§data_stores_directory: PathBuf
Directory to store signer data (Stakes, Protocol initializers, …)
@@ -35,15 +35,15 @@
§disable_digests_cache: bool
Disable immutables digests cache.
§reset_digests_cache: bool
If set the existing immutables digests cache will be reset.
Will be ignored if set in conjunction with disable_digests_cache
.
-§era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
+§era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
§era_reader_adapter_params: Option<String>
Era reader adapter parameters
-Implementations§
source§impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
+Implementations§
source§impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
sourcepub fn get_sqlite_file(&self) -> PathBuf
Create the SQL store directory if not exist and return the path of the
SQLite3 file.
sourcepub fn build_era_reader_adapter(
&self,
- chain_observer: Arc<dyn ChainObserver>
-) -> StdResult<Arc<dyn EraReaderAdapter>>
Trait Implementations§
source§impl Clone for Configuration
source§fn clone(&self) -> Configuration
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Configuration
source§impl<'de> Deserialize<'de> for Configuration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for Configuration
§impl Send for Configuration
§impl Sync for Configuration
§impl Unpin for Configuration
§impl UnwindSafe for Configuration
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
index cc353edc20f..4f7e90cf792 100644
--- a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
@@ -1,5 +1,5 @@
-FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert EpochSettingsMessage to EpochSettings.
-Trait Implementations§
source§impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
source§fn adapt(message: EpochSettingsMessage) -> EpochSettings
Method to convert.
+FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert [EpochSettingsMessage] to [EpochSettings].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromEpochSettingsAdapter
§impl Send for FromEpochSettingsAdapter
§impl Sync for FromEpochSettingsAdapter
§impl Unpin for FromEpochSettingsAdapter
§impl UnwindSafe for FromEpochSettingsAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/enum.SignerState.html b/rust-doc/mithril_signer/enum.SignerState.html
index 62280f704b5..cf016230a59 100644
--- a/rust-doc/mithril_signer/enum.SignerState.html
+++ b/rust-doc/mithril_signer/enum.SignerState.html
@@ -1,25 +1,25 @@
SignerState in mithril_signer - Rust Enum mithril_signer::SignerState
source · pub enum SignerState {
Init,
Unregistered {
- epoch: Epoch,
+ epoch: Epoch,
},
Registered {
- epoch: Epoch,
+ epoch: Epoch,
},
Signed {
- epoch: Epoch,
- signed_entity_type: SignedEntityType,
+ epoch: Epoch,
+ signed_entity_type: SignedEntityType,
},
}
Expand description
Different possible states of the state machine.
Variants§
§Init
Starting state
-§Unregistered
Fields
§epoch: Epoch
Current Epoch
+§Unregistered
Fields
§epoch: Epoch
Current Epoch
Hold the latest known epoch in order to help synchronisation
with the aggregator
-§Registered
Fields
§epoch: Epoch
Epoch when Signer may sign.
+§Registered
Fields
§epoch: Epoch
Epoch when Signer may sign.
Registered
state. The Signer has successfuly registered against the
Aggregator for this Epoch, it is now able to sign.
-§Signed
Fields
§signed_entity_type: SignedEntityType
Entity type that is signed
+§Signed
Fields
§epoch: Epoch
Epoch when Signer signed.
+§signed_entity_type: SignedEntityType
Entity type that is signed
Signed
state. The Signer has signed the message for the
current pending certificate.
Implementations§
source§impl SignerState
sourcepub fn is_init(&self) -> bool
Returns true
if the state in Init
diff --git a/rust-doc/mithril_signer/enum.SingleSignerError.html b/rust-doc/mithril_signer/enum.SingleSignerError.html
index 6ad21f0617a..7b7f5ae20b6 100644
--- a/rust-doc/mithril_signer/enum.SingleSignerError.html
+++ b/rust-doc/mithril_signer/enum.SingleSignerError.html
@@ -1,11 +1,11 @@
SingleSignerError in mithril_signer - Rust pub enum SingleSignerError {
ProtocolSignerCreationFailure(String),
- SignatureFailed(StdError),
- AggregateVerificationKeyComputationFailed(StdError),
+ SignatureFailed(StdError),
+ AggregateVerificationKeyComputationFailed(StdError),
}
Expand description
SingleSigner error structure.
Variants§
§ProtocolSignerCreationFailure(String)
Cryptographic Signer creation error.
-§SignatureFailed(StdError)
Signature Error
-§AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
+§SignatureFailed(StdError)
Signature Error
+§AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
Trait Implementations§
source§impl Debug for SingleSignerError
source§impl Display for SingleSignerError
source§impl Error for SingleSignerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for SingleSignerError
§impl Send for SingleSignerError
§impl Sync for SingleSignerError
§impl Unpin for SingleSignerError
§impl UnwindSafe for SingleSignerError
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/index.html b/rust-doc/mithril_signer/index.html
index 093770cc23b..df38175a5b2 100644
--- a/rust-doc/mithril_signer/index.html
+++ b/rust-doc/mithril_signer/index.html
@@ -5,7 +5,7 @@
for more information on how it works.
Modules
- database module.
This module contains the entities definition tied with database
-representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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
+representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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.
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html b/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
index 2330fd49f2f..b44b72633b5 100644
--- a/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
+++ b/rust-doc/mithril_signer/struct.AggregatorHTTPClient.html
@@ -2,7 +2,7 @@
Implementations§
source§impl AggregatorHTTPClient
sourcepub fn new(
aggregator_endpoint: String,
relay_endpoint: Option<String>,
- api_version_provider: Arc<APIVersionProvider>
+ api_version_provider: Arc<APIVersionProvider>
) -> Self
AggregatorHTTPClient factory
sourcepub fn prepare_request_builder(
&self,
@@ -10,23 +10,23 @@
) -> RequestBuilder
Forge a client request adding protocol version in the headers.
Trait Implementations§
source§impl AggregatorClient for AggregatorHTTPClient
source§fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregatorsource§fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregatorsource§fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.source§fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/struct.Configuration.html b/rust-doc/mithril_signer/struct.Configuration.html
index b54a760e59b..3ea6a6fb31a 100644
--- a/rust-doc/mithril_signer/struct.Configuration.html
+++ b/rust-doc/mithril_signer/struct.Configuration.html
@@ -5,7 +5,7 @@
pub network: String,
pub aggregator_endpoint: String,
pub relay_endpoint: Option<String>,
- pub party_id: Option<PartyId>,
+ pub party_id: Option<PartyId>,
pub run_interval: u64,
pub db_directory: PathBuf,
pub data_stores_directory: PathBuf,
@@ -14,7 +14,7 @@
pub operational_certificate_path: Option<PathBuf>,
pub disable_digests_cache: bool,
pub reset_digests_cache: bool,
- pub era_reader_adapter_type: EraReaderAdapterType,
+ pub era_reader_adapter_type: EraReaderAdapterType,
pub era_reader_adapter_params: Option<String>,
}Expand description
Client configuration
Fields§
§cardano_cli_path: PathBuf
Cardano CLI tool path
@@ -25,7 +25,7 @@
§network: String
Cardano network
§aggregator_endpoint: String
Aggregator endpoint
§relay_endpoint: Option<String>
Relay endpoint
-§party_id: Option<PartyId>
Party Id
+§party_id: Option<PartyId>
Party Id
§run_interval: u64
Run Interval
§db_directory: PathBuf
Directory to snapshot
§data_stores_directory: PathBuf
Directory to store signer data (Stakes, Protocol initializers, …)
@@ -35,15 +35,15 @@
§disable_digests_cache: bool
Disable immutables digests cache.
§reset_digests_cache: bool
If set the existing immutables digests cache will be reset.
Will be ignored if set in conjunction with disable_digests_cache
.
-§era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
+§era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
§era_reader_adapter_params: Option<String>
Era reader adapter parameters
-Implementations§
source§impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
+Implementations§
source§impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
sourcepub fn get_sqlite_file(&self) -> PathBuf
Create the SQL store directory if not exist and return the path of the
SQLite3 file.
sourcepub fn build_era_reader_adapter(
&self,
- chain_observer: Arc<dyn ChainObserver>
-) -> StdResult<Arc<dyn EraReaderAdapter>>
Trait Implementations§
source§impl Clone for Configuration
source§fn clone(&self) -> Configuration
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Configuration
source§impl<'de> Deserialize<'de> for Configuration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for Configuration
§impl Send for Configuration
§impl Sync for Configuration
§impl Unpin for Configuration
§impl UnwindSafe for Configuration
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
index cc353edc20f..4f7e90cf792 100644
--- a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
@@ -1,5 +1,5 @@
-FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert EpochSettingsMessage to EpochSettings.
-Trait Implementations§
source§impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
source§fn adapt(message: EpochSettingsMessage) -> EpochSettings
Method to convert.
+FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert [EpochSettingsMessage] to [EpochSettings].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromEpochSettingsAdapter
§impl Send for FromEpochSettingsAdapter
§impl Sync for FromEpochSettingsAdapter
§impl Unpin for FromEpochSettingsAdapter
§impl UnwindSafe for FromEpochSettingsAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
Enum mithril_signer::SignerState
source · pub enum SignerState {
Init,
Unregistered {
- epoch: Epoch,
+ epoch: Epoch,
},
Registered {
- epoch: Epoch,
+ epoch: Epoch,
},
Signed {
- epoch: Epoch,
- signed_entity_type: SignedEntityType,
+ epoch: Epoch,
+ signed_entity_type: SignedEntityType,
},
}
Expand description
Different possible states of the state machine.
Variants§
Init
Starting state
-Unregistered
Fields
epoch: Epoch
Current Epoch
+Unregistered
Fields
epoch: Epoch
Current Epoch
Hold the latest known epoch in order to help synchronisation with the aggregator
-Registered
Fields
epoch: Epoch
Epoch when Signer may sign.
+Registered
Fields
epoch: Epoch
Epoch when Signer may sign.
Registered
state. The Signer has successfuly registered against the
Aggregator for this Epoch, it is now able to sign.
Signed
Fields
signed_entity_type: SignedEntityType
Entity type that is signed
+Signed
Fields
epoch: Epoch
Epoch when Signer signed.
+signed_entity_type: SignedEntityType
Entity type that is signed
Signed
state. The Signer has signed the message for the
current pending certificate.
Implementations§
source§impl SignerState
impl SignerState
sourcepub fn is_init(&self) -> bool
pub fn is_init(&self) -> bool
Returns true
if the state in Init
pub enum SingleSignerError {
ProtocolSignerCreationFailure(String),
- SignatureFailed(StdError),
- AggregateVerificationKeyComputationFailed(StdError),
+ SignatureFailed(StdError),
+ AggregateVerificationKeyComputationFailed(StdError),
}
Expand description
SingleSigner error structure.
Variants§
ProtocolSignerCreationFailure(String)
Cryptographic Signer creation error.
-SignatureFailed(StdError)
Signature Error
-AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
+SignatureFailed(StdError)
Signature Error
+AggregateVerificationKeyComputationFailed(StdError)
Avk computation Error
Trait Implementations§
source§impl Debug for SingleSignerError
impl Debug for SingleSignerError
source§impl Display for SingleSignerError
impl Display for SingleSignerError
source§impl Error for SingleSignerError
impl Error for SingleSignerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for SingleSignerError
impl Send for SingleSignerError
impl Sync for SingleSignerError
impl Unpin for SingleSignerError
impl UnwindSafe for SingleSignerError
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/index.html b/rust-doc/mithril_signer/index.html
index 093770cc23b..df38175a5b2 100644
--- a/rust-doc/mithril_signer/index.html
+++ b/rust-doc/mithril_signer/index.html
@@ -5,7 +5,7 @@
for more information on how it works.
impl<T> AnySync for Twhere diff --git a/rust-doc/mithril_signer/index.html b/rust-doc/mithril_signer/index.html index 093770cc23b..df38175a5b2 100644 --- a/rust-doc/mithril_signer/index.html +++ b/rust-doc/mithril_signer/index.html @@ -5,7 +5,7 @@ for more information on how it works.
Modules
- database module. This module contains the entities definition tied with database -representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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 +representation with their associated providers.
Structs
- AggregatorHTTPClient is a http client for an aggregator
- 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.
Implementations§
source§impl AggregatorHTTPClient
impl AggregatorHTTPClient
sourcepub fn new(
aggregator_endpoint: String,
relay_endpoint: Option<String>,
- api_version_provider: Arc<APIVersionProvider>
+ api_version_provider: Arc<APIVersionProvider>
) -> Self
pub fn new( aggregator_endpoint: String, relay_endpoint: Option<String>, - api_version_provider: Arc<APIVersionProvider> + api_version_provider: Arc<APIVersionProvider> ) -> Self
AggregatorHTTPClient factory
sourcepub fn prepare_request_builder(
&self,
@@ -10,23 +10,23 @@
) -> RequestBuilder
pub fn prepare_request_builder( &self, @@ -10,23 +10,23 @@ ) -> RequestBuilder
Forge a client request adding protocol version in the headers.
Trait Implementations§
source§impl AggregatorClient for AggregatorHTTPClient
impl AggregatorClient for AggregatorHTTPClient
source§fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_epoch_settings<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_pending_certificate<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_signer<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - signer: &'life1 Signer + epoch: Epoch, + signer: &'life1 Signer ) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/struct.Configuration.html b/rust-doc/mithril_signer/struct.Configuration.html
index b54a760e59b..3ea6a6fb31a 100644
--- a/rust-doc/mithril_signer/struct.Configuration.html
+++ b/rust-doc/mithril_signer/struct.Configuration.html
@@ -5,7 +5,7 @@
pub network: String,
pub aggregator_endpoint: String,
pub relay_endpoint: Option<String>,
- pub party_id: Option<PartyId>,
+ pub party_id: Option<PartyId>,
pub run_interval: u64,
pub db_directory: PathBuf,
pub data_stores_directory: PathBuf,
@@ -14,7 +14,7 @@
pub operational_certificate_path: Option<PathBuf>,
pub disable_digests_cache: bool,
pub reset_digests_cache: bool,
- pub era_reader_adapter_type: EraReaderAdapterType,
+ pub era_reader_adapter_type: EraReaderAdapterType,
pub era_reader_adapter_params: Option<String>,
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, - signed_entity_type: &'life1 SignedEntityType, - signatures: &'life2 SingleSignatures + signed_entity_type: &'life1 SignedEntityType, + signatures: &'life2 SingleSignatures ) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, diff --git a/rust-doc/mithril_signer/struct.Configuration.html b/rust-doc/mithril_signer/struct.Configuration.html index b54a760e59b..3ea6a6fb31a 100644 --- a/rust-doc/mithril_signer/struct.Configuration.html +++ b/rust-doc/mithril_signer/struct.Configuration.html @@ -5,7 +5,7 @@ pub network: String, pub aggregator_endpoint: String, pub relay_endpoint: Option<String>, - pub party_id: Option<PartyId>, + pub party_id: Option<PartyId>, pub run_interval: u64, pub db_directory: PathBuf, pub data_stores_directory: PathBuf, @@ -14,7 +14,7 @@ pub operational_certificate_path: Option<PathBuf>, pub disable_digests_cache: bool, pub reset_digests_cache: bool, - pub era_reader_adapter_type: EraReaderAdapterType, + pub era_reader_adapter_type: EraReaderAdapterType, pub era_reader_adapter_params: Option<String>,
Expand description
Client configuration
Fields§
§cardano_cli_path: PathBuf
Cardano CLI tool path
@@ -25,7 +25,7 @@network: String
Cardano network
aggregator_endpoint: String
Aggregator endpoint
relay_endpoint: Option<String>
Relay endpoint
-party_id: Option<PartyId>
Party Id
+party_id: Option<PartyId>
Party Id
run_interval: u64
Run Interval
db_directory: PathBuf
Directory to snapshot
data_stores_directory: PathBuf
Directory to store signer data (Stakes, Protocol initializers, …)
@@ -35,15 +35,15 @@disable_digests_cache: bool
Disable immutables digests cache.
reset_digests_cache: bool
If set the existing immutables digests cache will be reset.
Will be ignored if set in conjunction with disable_digests_cache
.
era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
+era_reader_adapter_type: EraReaderAdapterType
Era reader adapter type
era_reader_adapter_params: Option<String>
Era reader adapter parameters
-Implementations§
source§impl Configuration
impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
pub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
+Implementations§
source§impl Configuration
impl Configuration
sourcepub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
pub fn get_network(&self) -> Result<CardanoNetwork, ConfigError>
Return the CardanoNetwork value from the configuration.
sourcepub fn get_sqlite_file(&self) -> PathBuf
pub fn get_sqlite_file(&self) -> PathBuf
Create the SQL store directory if not exist and return the path of the SQLite3 file.
sourcepub fn build_era_reader_adapter(
&self,
- chain_observer: Arc<dyn ChainObserver>
-) -> StdResult<Arc<dyn EraReaderAdapter>>
pub fn build_era_reader_adapter( &self, - chain_observer: Arc<dyn ChainObserver> -) -> StdResult<Arc<dyn EraReaderAdapter>>
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
index cc353edc20f..4f7e90cf792 100644
--- a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
@@ -1,5 +1,5 @@
-FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert EpochSettingsMessage to EpochSettings.
-Trait Implementations§
source§impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
source§fn adapt(message: EpochSettingsMessage) -> EpochSettings
Method to convert.
+FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert [EpochSettingsMessage] to [EpochSettings].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromEpochSettingsAdapter
§impl Send for FromEpochSettingsAdapter
§impl Sync for FromEpochSettingsAdapter
§impl Unpin for FromEpochSettingsAdapter
§impl UnwindSafe for FromEpochSettingsAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
index cc353edc20f..4f7e90cf792 100644
--- a/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromEpochSettingsAdapter.html
@@ -1,5 +1,5 @@
-FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert EpochSettingsMessage to EpochSettings.
-Trait Implementations§
source§impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
source§fn adapt(message: EpochSettingsMessage) -> EpochSettings
Method to convert.
+FromEpochSettingsAdapter in mithril_signer - Rust Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert [EpochSettingsMessage] to [EpochSettings].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromEpochSettingsAdapter
§impl Send for FromEpochSettingsAdapter
§impl Sync for FromEpochSettingsAdapter
§impl Unpin for FromEpochSettingsAdapter
§impl UnwindSafe for FromEpochSettingsAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert EpochSettingsMessage to EpochSettings.
-Trait Implementations§
source§impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
impl FromMessageAdapter<EpochSettingsMessage, EpochSettings> for FromEpochSettingsAdapter
source§fn adapt(message: EpochSettingsMessage) -> EpochSettings
fn adapt(message: EpochSettingsMessage) -> EpochSettings
Method to convert.
+Struct mithril_signer::FromEpochSettingsAdapter
source · pub struct FromEpochSettingsAdapter;
Expand description
Adapter to convert [EpochSettingsMessage] to [EpochSettings].
+Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FromEpochSettingsAdapter
impl Send for FromEpochSettingsAdapter
impl Sync for FromEpochSettingsAdapter
impl Unpin for FromEpochSettingsAdapter
impl UnwindSafe for FromEpochSettingsAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
index 805858f66c4..d3029d26fb4 100644
--- a/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.FromPendingCertificateMessageAdapter.html
@@ -1,7 +1,7 @@
-FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
Adapter method
+FromPendingCertificateMessageAdapter in mithril_signer - Rust pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for FromPendingCertificateMessageAdapter
§impl Send for FromPendingCertificateMessageAdapter
§impl Sync for FromPendingCertificateMessageAdapter
§impl Unpin for FromPendingCertificateMessageAdapter
§impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn CertificatePendingMessage instances into CertificatePending.
-Trait Implementations§
source§impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
impl TryFromMessageAdapter<CertificatePendingMessage, CertificatePending> for FromPendingCertificateMessageAdapter
source§fn try_adapt(
- message: CertificatePendingMessage
-) -> StdResult<CertificatePending>
fn try_adapt( - message: CertificatePendingMessage -) -> StdResult<CertificatePending>
Adapter method
+pub struct FromPendingCertificateMessageAdapter;
Expand description
Adapter to turn [CertificatePendingMessage] instances into [CertificatePending].
+Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FromPendingCertificateMessageAdapter
impl Send for FromPendingCertificateMessageAdapter
impl Sync for FromPendingCertificateMessageAdapter
impl Unpin for FromPendingCertificateMessageAdapter
impl UnwindSafe for FromPendingCertificateMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
index f0eb2407aa0..853b2b1d1ce 100644
--- a/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
+++ b/rust-doc/mithril_signer/struct.MithrilProtocolInitializerBuilder.html
@@ -1,10 +1,10 @@
MithrilProtocolInitializerBuilder in mithril_signer - Rust pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilProtocolInitializerBuilder
§impl Send for MithrilProtocolInitializerBuilder
§impl Sync for MithrilProtocolInitializerBuilder
§impl Unpin for MithrilProtocolInitializerBuilder
§impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
pub struct MithrilProtocolInitializerBuilder {}
Expand description
This is responsible of creating new instances of ProtocolInitializer.
Implementations§
source§impl MithrilProtocolInitializerBuilder
impl MithrilProtocolInitializerBuilder
sourcepub fn build(
- stake: &Stake,
- protocol_parameters: &ProtocolParameters,
+ stake: &Stake,
+ protocol_parameters: &ProtocolParameters,
kes_secret_key_path: Option<PathBuf>,
- kes_period: Option<KESPeriod>
-) -> Result<ProtocolInitializer, ProtocolInitializerError>
pub fn build( - stake: &Stake, - protocol_parameters: &ProtocolParameters, + stake: &Stake, + protocol_parameters: &ProtocolParameters, kes_secret_key_path: Option<PathBuf>, - kes_period: Option<KESPeriod> -) -> Result<ProtocolInitializer, ProtocolInitializerError>
Auto Trait Implementations§
impl RefUnwindSafe for MithrilProtocolInitializerBuilder
impl Send for MithrilProtocolInitializerBuilder
impl Sync for MithrilProtocolInitializerBuilder
impl Unpin for MithrilProtocolInitializerBuilder
impl UnwindSafe for MithrilProtocolInitializerBuilder
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
index cc752f27d73..4284f5d0bf3 100644
--- a/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
+++ b/rust-doc/mithril_signer/struct.MithrilSingleSigner.html
@@ -1,17 +1,17 @@
MithrilSingleSigner in mithril_signer - Rust Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signaturesAuto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for MithrilSingleSigner
§impl Send for MithrilSingleSigner
§impl Sync for MithrilSingleSigner
§impl Unpin for MithrilSingleSigner
§impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
§impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
§impl<'a> Send for ProductionServiceBuilder<'a>
§impl<'a> Sync for ProductionServiceBuilder<'a>
§impl<'a> Unpin for ProductionServiceBuilder<'a>
§impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
Struct mithril_signer::MithrilSingleSigner
source · pub struct MithrilSingleSigner { /* private fields */ }
Expand description
Implementation of the SingleSigner.
-Implementations§
source§impl MithrilSingleSigner
impl MithrilSingleSigner
Implementations§
Trait Implementations§
source§impl SingleSigner for MithrilSingleSigner
impl SingleSigner for MithrilSingleSigner
source§fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
fn compute_aggregate_verification_key( &self, - signers_with_stake: &[SignerWithStake], - protocol_initializer: &ProtocolInitializer -) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-source§fn get_party_id(&self) -> PartyId
fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake], + protocol_initializer: &ProtocolInitializer +) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+source§fn get_party_id(&self) -> PartyId
fn get_party_id(&self) -> PartyId
Get party id
source§fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
fn compute_single_signatures( &self, - protocol_message: &ProtocolMessage, - signers_with_stake: &[SignerWithStake], - protocol_initializer: &ProtocolInitializer -) -> StdResult<Option<SingleSignatures>>
Auto Trait Implementations§
impl RefUnwindSafe for MithrilSingleSigner
impl Send for MithrilSingleSigner
impl Sync for MithrilSingleSigner
impl Unpin for MithrilSingleSigner
impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MithrilSingleSigner
impl Send for MithrilSingleSigner
impl Sync for MithrilSingleSigner
impl Unpin for MithrilSingleSigner
impl UnwindSafe for MithrilSingleSigner
Blanket Implementations§
source§impl<T> Az for T
impl<T> Az for T
source§fn az<Dst>(self) -> Dstwhere
diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
index bf0a2ba04f4..b2665fc24df 100644
--- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
+++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html
@@ -2,15 +2,15 @@
fn az<Dst>(self) -> Dstwhere diff --git a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html index bf0a2ba04f4..b2665fc24df 100644 --- a/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html +++ b/rust-doc/mithril_signer/struct.ProductionServiceBuilder.html @@ -2,15 +2,15 @@
Implementations§
source§impl<'a> ProductionServiceBuilder<'a>
impl<'a> ProductionServiceBuilder<'a>
sourcepub fn new(config: &'a Configuration) -> Self
pub fn new(config: &'a Configuration) -> Self
Create a new production service builder.
sourcepub fn override_immutable_file_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>>
) -> &mut Self
pub fn override_immutable_file_observer_builder( &mut self, - builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>> + builder: fn(_: &Configuration) -> StdResult<Arc<dyn ImmutableFileObserver>> ) -> &mut Self
Override immutable file observer builder.
sourcepub fn override_chain_observer_builder(
&mut self,
- builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
+ builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>>
) -> &mut Self
pub fn override_chain_observer_builder( &mut self, - builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>> + builder: fn(_: &Configuration) -> StdResult<Arc<dyn ChainObserver>> ) -> &mut Self
Override default chain observer builder.
Trait Implementations§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
source§fn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Build a Services for the Production environment.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ProductionServiceBuilder<'a>
impl<'a> Send for ProductionServiceBuilder<'a>
impl<'a> Sync for ProductionServiceBuilder<'a>
impl<'a> Unpin for ProductionServiceBuilder<'a>
impl<'a> UnwindSafe for ProductionServiceBuilder<'a>
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
index 438baaa1bb8..260cb6c1a30 100644
--- a/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
+++ b/rust-doc/mithril_signer/struct.ProtocolInitializerStore.html
@@ -1,29 +1,29 @@
ProtocolInitializerStore in mithril_signer - Rust Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.source§impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
This trait requires a way to get the internal adapter.source§fn get_max_records(&self) -> Option<usize>
Return the maximum number of elements that can exist in this store. If None, there is no limit.§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Prune elements exceeding the specified limit.Auto Trait Implementations§
§impl !RefUnwindSafe for ProtocolInitializerStore
§impl Send for ProtocolInitializerStore
§impl Sync for ProtocolInitializerStore
§impl Unpin for ProtocolInitializerStore
§impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.Auto Trait Implementations§
§impl !RefUnwindSafe for SignerRunner
§impl Send for SignerRunner
§impl Sync for SignerRunner
§impl Unpin for SignerRunner
§impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
Struct mithril_signer::ProtocolInitializerStore
source · pub struct ProtocolInitializerStore { /* private fields */ }
Expand description
Implementation of the ProtocolInitializerStorer
Implementations§
source§impl ProtocolInitializerStore
impl ProtocolInitializerStore
sourcepub fn new(
- adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
+ adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>,
retention_limit: Option<usize>
) -> Self
pub fn new( - adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>, + adapter: Box<dyn StoreAdapter<Key = Epoch, Record = ProtocolInitializer>>, retention_limit: Option<usize> ) -> Self
Create a new ProtocolInitializerStore.
Trait Implementations§
source§impl ProtocolInitializerStorer for ProtocolInitializerStore
impl ProtocolInitializerStorer for ProtocolInitializerStore
source§fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_protocol_initializer<'life0, 'async_trait>( &'life0 self, - epoch: Epoch, - protocol_initializer: ProtocolInitializer -) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where + epoch: Epoch, + protocol_initializer: ProtocolInitializer +) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_protocol_initializer<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
fn get_last_protocol_initializer<'life0, 'async_trait>( &'life0 self, last: usize -) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, - 'life0: 'async_trait,
source§impl StorePruner for ProtocolInitializerStore
impl StorePruner for ProtocolInitializerStore
source§fn get_adapter(
&self
-) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
fn get_adapter( &self -) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
source§fn get_max_records(&self) -> Option<usize>
fn get_max_records(&self) -> Option<usize>
source§fn prune<'life0, 'async_trait>(
+) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
fn prune<'life0, 'async_trait>( +) -> &RwLock<Box<dyn StoreAdapter<Key = Self::Key, Record = Self::Record>>>
source§fn get_max_records(&self) -> Option<usize>
fn get_max_records(&self) -> Option<usize>
§fn prune<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
+) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn prune<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where +) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: Sync + 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ProtocolInitializerStore
impl Send for ProtocolInitializerStore
impl Sync for ProtocolInitializerStore
impl Unpin for ProtocolInitializerStore
impl !UnwindSafe for ProtocolInitializerStore
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html
index d38b6434c09..9da79aa153f 100644
--- a/rust-doc/mithril_signer/struct.SignerRunner.html
+++ b/rust-doc/mithril_signer/struct.SignerRunner.html
@@ -2,70 +2,70 @@
impl<T> Any for Twhere diff --git a/rust-doc/mithril_signer/struct.SignerRunner.html b/rust-doc/mithril_signer/struct.SignerRunner.html index d38b6434c09..9da79aa153f 100644 --- a/rust-doc/mithril_signer/struct.SignerRunner.html +++ b/rust-doc/mithril_signer/struct.SignerRunner.html @@ -2,70 +2,70 @@
Implementations§
source§impl SignerRunner
impl SignerRunner
sourcepub fn new(config: Configuration, services: SignerServices) -> Self
pub fn new(config: Configuration, services: SignerServices) -> Self
Create a new Runner instance.
Trait Implementations§
source§impl Runner for SignerRunner
impl Runner for SignerRunner
source§fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_settings<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_certificate<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_beacon<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - protocol_parameters: &'life1 ProtocolParameters -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch, + protocol_parameters: &'life1 ProtocolParameters +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_stake_distribution<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn can_i_sign<'life0, 'life1, 'async_trait>( &'life0 self, - pending_certificate: &'life1 CertificatePending -) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where + pending_certificate: &'life1 CertificatePending +) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - signers: &'life1 [Signer] -) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where + epoch: Epoch, + signers: &'life1 [Signer] +) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compute_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, - signed_entity_type: &'life1 SignedEntityType, - next_signers: &'life2 [SignerWithStake] -) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where + signed_entity_type: &'life1 SignedEntityType, + next_signers: &'life2 [SignerWithStake] +) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
source§fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, - epoch: Epoch, - message: &'life1 ProtocolMessage, - signers: &'life2 [SignerWithStake] -) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where + epoch: Epoch, + message: &'life1 ProtocolMessage, + signers: &'life2 [SignerWithStake] +) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
source§fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_single_signature<'life0, 'life1, 'async_trait>( &'life0 self, - signed_entity_type: &'life1 SignedEntityType, - maybe_signature: Option<SingleSignatures> -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + signed_entity_type: &'life1 SignedEntityType, + maybe_signature: Option<SingleSignatures> +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_era_checker<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for SignerRunner
impl Send for SignerRunner
impl Sync for SignerRunner
impl Unpin for SignerRunner
impl !UnwindSafe for SignerRunner
Blanket Implementations§
§impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> Any for Twhere
diff --git a/rust-doc/mithril_signer/struct.SignerServices.html b/rust-doc/mithril_signer/struct.SignerServices.html
index a91dc381dd4..0e110404ec3 100644
--- a/rust-doc/mithril_signer/struct.SignerServices.html
+++ b/rust-doc/mithril_signer/struct.SignerServices.html
@@ -1,27 +1,27 @@
SignerServices in mithril_signer - Rust Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-§stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+§stake_store: Arc<StakeStore>
Stake store service
§certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-§digester: Arc<dyn ImmutableDigester>
Digester service
+§chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+§digester: Arc<dyn ImmutableDigester>
Digester service
§single_signer: Arc<dyn SingleSigner>
SingleSigner service
§protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-§era_checker: Arc<EraChecker>
Era checker service
-§era_reader: Arc<EraReader>
Era reader service
-§api_version_provider: Arc<APIVersionProvider>
API version provider
-§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+§era_checker: Arc<EraChecker>
Era checker service
+§era_reader: Arc<EraReader>
Era reader service
+§api_version_provider: Arc<APIVersionProvider>
API version provider
+§signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
§impl !RefUnwindSafe for SignerServices
§impl Send for SignerServices
§impl Sync for SignerServices
§impl Unpin for SignerServices
§impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
Struct mithril_signer::SignerServices
source · pub struct SignerServices {
- pub beacon_provider: Arc<dyn BeaconProvider>,
- pub stake_store: Arc<StakeStore>,
+ pub beacon_provider: Arc<dyn BeaconProvider>,
+ pub stake_store: Arc<StakeStore>,
pub certificate_handler: Arc<dyn AggregatorClient>,
- pub chain_observer: Arc<dyn ChainObserver>,
- pub digester: Arc<dyn ImmutableDigester>,
+ pub chain_observer: Arc<dyn ChainObserver>,
+ pub digester: Arc<dyn ImmutableDigester>,
pub single_signer: Arc<dyn SingleSigner>,
pub protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>,
- pub era_checker: Arc<EraChecker>,
- pub era_reader: Arc<EraReader>,
- pub api_version_provider: Arc<APIVersionProvider>,
- pub signable_builder_service: Arc<dyn SignableBuilderService>,
+ pub era_checker: Arc<EraChecker>,
+ pub era_reader: Arc<EraReader>,
+ pub api_version_provider: Arc<APIVersionProvider>,
+ pub signable_builder_service: Arc<dyn SignableBuilderService>,
}
Expand description
This structure groups all the services required by the state machine.
-Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
-stake_store: Arc<StakeStore>
Stake store service
+Fields§
§beacon_provider: Arc<dyn BeaconProvider>
Beacon provider service
+stake_store: Arc<StakeStore>
Stake store service
certificate_handler: Arc<dyn AggregatorClient>
Certificate handler service
-chain_observer: Arc<dyn ChainObserver>
Chain Observer service
-digester: Arc<dyn ImmutableDigester>
Digester service
+chain_observer: Arc<dyn ChainObserver>
Chain Observer service
+digester: Arc<dyn ImmutableDigester>
Digester service
single_signer: Arc<dyn SingleSigner>
SingleSigner service
protocol_initializer_store: Arc<dyn ProtocolInitializerStorer>
ProtocolInitializer store
-era_checker: Arc<EraChecker>
Era checker service
-era_reader: Arc<EraReader>
Era reader service
-api_version_provider: Arc<APIVersionProvider>
API version provider
-signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
+era_checker: Arc<EraChecker>
Era checker service
+era_reader: Arc<EraReader>
Era reader service
+api_version_provider: Arc<APIVersionProvider>
API version provider
+signable_builder_service: Arc<dyn SignableBuilderService>
Signable Builder Service
Auto Trait Implementations§
impl !RefUnwindSafe for SignerServices
impl Send for SignerServices
impl Sync for SignerServices
impl Unpin for SignerServices
impl !UnwindSafe for SignerServices
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
index 3549975c4ac..609bda9019d 100644
--- a/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
+++ b/rust-doc/mithril_signer/struct.ToRegisterSignerMessageAdapter.html
@@ -1,5 +1,5 @@
-ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+ToRegisterSignerMessageAdapter in mithril_signer - Rust pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ToRegisterSignerMessageAdapter
§impl Send for ToRegisterSignerMessageAdapter
§impl Sync for ToRegisterSignerMessageAdapter
§impl Unpin for ToRegisterSignerMessageAdapter
§impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.ServiceBuilder.html b/rust-doc/mithril_signer/trait.ServiceBuilder.html
index 8092e237641..bd7419ec1c5 100644
--- a/rust-doc/mithril_signer/trait.ServiceBuilder.html
+++ b/rust-doc/mithril_signer/trait.ServiceBuilder.html
@@ -2,14 +2,14 @@
// Required method
fn build<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a SignerService instance.
Implementors§
source§impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.SingleSigner.html b/rust-doc/mithril_signer/trait.SingleSigner.html
index ca04bed44e1..a3874614ab5 100644
--- a/rust-doc/mithril_signer/trait.SingleSigner.html
+++ b/rust-doc/mithril_signer/trait.SingleSigner.html
@@ -2,27 +2,27 @@
// Required methods
fn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<SingleSignatures>>;
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<SingleSignatures>>;
fn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
- ) -> StdResult<Option<String>>;
- fn get_party_id(&self) -> PartyId;
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+ ) -> StdResult<Option<String>>;
+ fn get_party_id(&self) -> PartyId;
}Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage,
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake],
+ protocol_initializer: &ProtocolInitializer
+) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
Get party id
Implementors§
source§impl SingleSigner for MithrilSingleSigner
\ No newline at end of file
pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create RegisterSignerMessage from Signer instance.
-Trait Implementations§
source§impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
impl ToMessageAdapter<(Epoch, Signer), RegisterSignerMessage> for ToRegisterSignerMessageAdapter
source§fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
fn adapt((epoch, signer): (Epoch, Signer)) -> RegisterSignerMessage
Method to trigger the conversion.
+pub struct ToRegisterSignerMessageAdapter;
Expand description
Adapter to create [RegisterSignerMessage] from [Signer] instance.
+Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ToRegisterSignerMessageAdapter
impl Send for ToRegisterSignerMessageAdapter
impl Sync for ToRegisterSignerMessageAdapter
impl Unpin for ToRegisterSignerMessageAdapter
impl UnwindSafe for ToRegisterSignerMessageAdapter
Blanket Implementations§
§impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
impl<T> AnySync for Twhere
diff --git a/rust-doc/mithril_signer/trait.AggregatorClient.html b/rust-doc/mithril_signer/trait.AggregatorClient.html
index 275c916d9ba..ece88af2d08 100644
--- a/rust-doc/mithril_signer/trait.AggregatorClient.html
+++ b/rust-doc/mithril_signer/trait.AggregatorClient.html
@@ -2,26 +2,26 @@
// Required methods
fn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
@@ -30,26 +30,26 @@
}Expand description
Trait for mocking and testing a AggregatorClient
Required Methods§
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
\ No newline at end of file
diff --git a/rust-doc/mithril_signer/trait.Runner.html b/rust-doc/mithril_signer/trait.Runner.html
index da9afa211a8..6bdb8649c91 100644
--- a/rust-doc/mithril_signer/trait.Runner.html
+++ b/rust-doc/mithril_signer/trait.Runner.html
@@ -2,158 +2,158 @@
// Required methods
fn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_beacon<'life0, 'async_trait>(
&'life0 self
- ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
- ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
+ pending_certificate: &'life1 CertificatePending
+ ) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
- ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
- ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+ ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
This trait is mainly intended for mocking.
Required Methods§
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
From a list of signers, associate them with the stake read on the
Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current era and update the EraChecker.
Implementors§
source§impl Runner for SignerRunner
Expand description
Trait for mocking and testing a AggregatorClient
sourcefn retrieve_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_epoch_settings<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<EpochSettings>, AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Retrieves epoch settings from the aggregator
sourcefn retrieve_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_pending_certificate<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<CertificatePending>, AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Retrieves a pending certificate from the aggregator
sourcefn register_signer<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signer: &'life1 Signer
+ epoch: Epoch,
+ signer: &'life1 Signer
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_signer<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - signer: &'life1 Signer + epoch: Epoch, + signer: &'life1 Signer ) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Registers signer with the aggregator.
sourcefn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
fn register_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- signatures: &'life2 SingleSignatures
+ signed_entity_type: &'life1 SignedEntityType,
+ signatures: &'life2 SingleSignatures
) -> Pin<Box<dyn Future<Output = Result<(), AggregatorClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
diff --git a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
index 283ff8e0223..fdf268e43e6 100644
--- a/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
+++ b/rust-doc/mithril_signer/trait.ProtocolInitializerStorer.html
@@ -2,42 +2,42 @@
// Required methods
fn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
- ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
+ epoch: Epoch
+ ) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
- ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
+ ) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because
protocol parameters and stake distribution change over time.
Required Methods§
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Implementors§
Expand description
Store the ProtocolInitializer used for each Epoch. This is useful because protocol parameters and stake distribution change over time.
sourcefn save_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_initializer: ProtocolInitializer
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_initializer: ProtocolInitializer
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_protocol_initializer<'life0, 'async_trait>( &'life0 self, - epoch: Epoch, - protocol_initializer: ProtocolInitializer -) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where + epoch: Epoch, + protocol_initializer: ProtocolInitializer +) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Save a protocol initializer for the given Epoch.
sourcefn get_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_protocol_initializer<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = Result<Option<ProtocolInitializer>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Fetch a protocol initializer if any saved for the given Epoch.
sourcefn get_last_protocol_initializer<'life0, 'async_trait>(
&'life0 self,
last: usize
-) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_last_protocol_initializer<'life0, 'async_trait>( &'life0 self, last: usize -) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Vec<(Epoch, ProtocolInitializer)>, StoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Return the list of the N last saved protocol initializers if any.
Expand description
This trait is mainly intended for mocking.
sourcefn get_epoch_settings<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_settings<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Option<EpochSettings>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Fetch the current epoch settings if any.
sourcefn get_pending_certificate<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_certificate<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Option<CertificatePending>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Fetch the current pending certificate if any.
sourcefn get_current_beacon<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_beacon<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<Beacon>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Fetch the current beacon from the Cardano node.
sourcefn register_signer_to_aggregator<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- protocol_parameters: &'life1 ProtocolParameters
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ protocol_parameters: &'life1 ProtocolParameters
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_signer_to_aggregator<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - protocol_parameters: &'life1 ProtocolParameters -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch, + protocol_parameters: &'life1 ProtocolParameters +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Register the signer verification key to the aggregator.
sourcefn update_stake_distribution<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_stake_distribution<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Read the stake distribution and store it.
sourcefn can_i_sign<'life0, 'life1, 'async_trait>(
&'life0 self,
- pending_certificate: &'life1 CertificatePending
-) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
+ pending_certificate: &'life1 CertificatePending
+) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn can_i_sign<'life0, 'life1, 'async_trait>( &'life0 self, - pending_certificate: &'life1 CertificatePending -) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where + pending_certificate: &'life1 CertificatePending +) -> Pin<Box<dyn Future<Output = StdResult<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Check if all prerequisites for signing are met.
sourcefn associate_signers_with_stake<'life0, 'life1, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- signers: &'life1 [Signer]
-) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ signers: &'life1 [Signer]
+) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn associate_signers_with_stake<'life0, 'life1, 'async_trait>( &'life0 self, - epoch: Epoch, - signers: &'life1 [Signer] -) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where + epoch: Epoch, + signers: &'life1 [Signer] +) -> Pin<Box<dyn Future<Output = StdResult<Vec<SignerWithStake>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
From a list of signers, associate them with the stake read on the Cardano node.
sourcefn compute_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- next_signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ next_signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compute_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, - signed_entity_type: &'life1 SignedEntityType, - next_signers: &'life2 [SignerWithStake] -) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where + signed_entity_type: &'life1 SignedEntityType, + next_signers: &'life2 [SignerWithStake] +) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Create the message to be signed with the single signature.
sourcefn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
- epoch: Epoch,
- message: &'life1 ProtocolMessage,
- signers: &'life2 [SignerWithStake]
-) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
+ epoch: Epoch,
+ message: &'life1 ProtocolMessage,
+ signers: &'life2 [SignerWithStake]
+) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compute_single_signature<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, - epoch: Epoch, - message: &'life1 ProtocolMessage, - signers: &'life2 [SignerWithStake] -) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where + epoch: Epoch, + message: &'life1 ProtocolMessage, + signers: &'life2 [SignerWithStake] +) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Create the single signature.
sourcefn send_single_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
- signed_entity_type: &'life1 SignedEntityType,
- maybe_signature: Option<SingleSignatures>
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ signed_entity_type: &'life1 SignedEntityType,
+ maybe_signature: Option<SingleSignatures>
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_single_signature<'life0, 'life1, 'async_trait>( &'life0 self, - signed_entity_type: &'life1 SignedEntityType, - maybe_signature: Option<SingleSignatures> -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + signed_entity_type: &'life1 SignedEntityType, + maybe_signature: Option<SingleSignatures> +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Send the single signature to the aggregator in order to be aggregated.
sourcefn update_era_checker<'life0, 'async_trait>(
&'life0 self,
- epoch: Epoch
-) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
+ epoch: Epoch
+) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_era_checker<'life0, 'async_trait>( &'life0 self, - epoch: Epoch -) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where + epoch: Epoch +) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Read the current era and update the EraChecker.
impl Runner for SignerRunner
Expand description
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.
Required Methods§
sourcefn build<'life0, 'async_trait>(
&'life0 self
-) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>( &'life0 self -) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = StdResult<SignerServices>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Create a SignerService instance.
Implementors§
impl<'a> ServiceBuilder for ProductionServiceBuilder<'a>
Expand description
The SingleSigner is the structure responsible of issuing SingleSignatures.
Required Methods§
sourcefn compute_single_signatures(
&self,
- protocol_message: &ProtocolMessage,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<SingleSignatures>>
fn compute_single_signatures( &self, - protocol_message: &ProtocolMessage, - signers_with_stake: &[SignerWithStake], - protocol_initializer: &ProtocolInitializer -) -> StdResult<Option<SingleSignatures>>
Computes single signatures
+ protocol_message: &ProtocolMessage, + signers_with_stake: &[SignerWithStake], + protocol_initializer: &ProtocolInitializer +) -> StdResult<Option<SingleSignatures>>Computes single signatures
sourcefn compute_aggregate_verification_key(
&self,
- signers_with_stake: &[SignerWithStake],
- protocol_initializer: &ProtocolInitializer
-) -> StdResult<Option<String>>
fn compute_aggregate_verification_key( &self, - signers_with_stake: &[SignerWithStake], - protocol_initializer: &ProtocolInitializer -) -> StdResult<Option<String>>
Compute aggregate verification key from stake distribution
-sourcefn get_party_id(&self) -> PartyId
fn get_party_id(&self) -> PartyId
Get party id
+ signers_with_stake: &[SignerWithStake], + protocol_initializer: &ProtocolInitializer +) -> StdResult<Option<String>>Compute aggregate verification key from stake distribution
+sourcefn get_party_id(&self) -> PartyId
fn get_party_id(&self) -> PartyId
Get party id