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

Required Methods

Returns the validator’s current ID.

Sign a signature with the current validator’s private key.

Implementations on Foreign Types

Implementors