Trait tendermint_machine::ext::Signer
source · pub trait Signer: Send + Sync {
type ValidatorId: ValidatorId;
type Signature: Signature;
fn validator_id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Self::ValidatorId> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Self::Signature> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
A signer for a validator.
Required Associated Types
type ValidatorId: ValidatorId
Required Methods
sourcefn validator_id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Self::ValidatorId> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn validator_id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Self::ValidatorId> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the validator’s current ID.