mithril_signer::services

Trait SingleSigner

source
pub trait SingleSigner: Sync + Send {
    // Required methods
    fn compute_single_signatures<'life0, 'life1, 'async_trait>(
        &'life0 self,
        protocol_message: &'life1 ProtocolMessage,
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_party_id(&self) -> PartyId;
}
Expand description

The SingleSigner is the structure responsible for issuing SingleSignatures.

Required Methods§

source

fn compute_single_signatures<'life0, 'life1, 'async_trait>( &'life0 self, protocol_message: &'life1 ProtocolMessage, ) -> Pin<Box<dyn Future<Output = StdResult<Option<SingleSignatures>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Computes single signatures

source

fn get_party_id(&self) -> PartyId

Get party id

Implementors§