pub trait VerificationKeyStorer: Sync + Send {
// Required methods
fn save_verification_key<'life0, 'async_trait>(
&'life0 self,
epoch: Epoch,
signer: SignerWithStake,
) -> Pin<Box<dyn Future<Output = StdResult<Option<SignerWithStake>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_verification_keys<'life0, 'async_trait>(
&'life0 self,
epoch: Epoch,
) -> Pin<Box<dyn Future<Output = StdResult<Option<HashMap<PartyId, Signer>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_signers<'life0, 'async_trait>(
&'life0 self,
epoch: Epoch,
) -> Pin<Box<dyn Future<Output = StdResult<Option<Vec<SignerWithStake>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn prune_verification_keys<'life0, 'async_trait>(
&'life0 self,
max_epoch_to_prune: Epoch,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Store and get signers verification keys for given epoch.
Important note: This store works on the recording epoch, the epoch at which the signers are signed into a certificate so they can sign single signatures at the next epoch.