mithril_signer/services/signer_registration/retriever/interface.rs
1use mithril_common::StdResult;
2
3use crate::RegisteredSigners;
4
5/// Service responsible for retrieving the signer's registration from the mithril network
6#[cfg_attr(test, mockall::automock)]
7#[async_trait::async_trait]
8pub trait SignersRegistrationRetriever: Sync + Send {
9 /// Retrieves signer's registration from the mithril network
10 async fn retrieve_all_signer_registrations(&self) -> StdResult<Option<RegisteredSigners>>;
11}