pub trait SignerRegistrationVerifier: Send + Sync {
// Required method
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signer: &'life1 Signer,
stake_distribution: &'life2 StakeDistribution,
) -> Pin<Box<dyn Future<Output = StdResult<SignerWithStake>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
A trait for verifying a Signer registration.
Required Methods§
Sourcefn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signer: &'life1 Signer,
stake_distribution: &'life2 StakeDistribution,
) -> Pin<Box<dyn Future<Output = StdResult<SignerWithStake>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signer: &'life1 Signer,
stake_distribution: &'life2 StakeDistribution,
) -> Pin<Box<dyn Future<Output = StdResult<SignerWithStake>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verifies a Signer registration.