Trait zappot::traits::BaseROTReceiver

source ·
pub trait BaseROTReceiver {
    type Msg;

    // Required method
    fn receive_random<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, RNG>(
        &'life0 mut self,
        choices: &'life1 BitSlice,
        rng: &'life2 mut RNG,
        sender: &'life3 Sender<Self::Msg>,
        receiver: &'life4 mut Receiver<Self::Msg>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Block>, Error<Self::Msg>>> + Send + 'async_trait>>
       where RNG: RngCore + CryptoRng + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

Receiver of base random OTs.

Required Associated Types§

Required Methods§

source

fn receive_random<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, RNG>( &'life0 mut self, choices: &'life1 BitSlice, rng: &'life2 mut RNG, sender: &'life3 Sender<Self::Msg>, receiver: &'life4 mut Receiver<Self::Msg> ) -> Pin<Box<dyn Future<Output = Result<Vec<Block>, Error<Self::Msg>>> + Send + 'async_trait>>
where RNG: RngCore + CryptoRng + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Receive count number of random OTs via the provided channel.

Object Safety§

This trait is not object safe.

Implementors§