mithril_signer/services/signer_registration/publisher/interface.rs
1use mithril_common::StdResult;
2use mithril_common::entities::{Epoch, Signer};
3
4/// Publishes a signer registration to a third party.
5#[cfg_attr(test, mockall::automock)]
6#[async_trait::async_trait]
7pub trait SignerRegistrationPublisher: Send + Sync {
8 /// Registers signer with the aggregator.
9 async fn register_signer(&self, epoch: Epoch, signer: &Signer) -> StdResult<()>;
10}