Trait zappot::traits::BaseROTSender

source ·
pub trait BaseROTSender {
    type Msg;

    // Required method
    fn send_random<'life0, 'life1, 'life2, 'life3, 'async_trait, RNG>(
        &'life0 mut self,
        count: usize,
        rng: &'life1 mut RNG,
        sender: &'life2 Sender<Self::Msg>,
        receiver: &'life3 mut Receiver<Self::Msg>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<[Block; 2]>, 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;
}
Expand description

Sender of base random OTs.

Required Associated Types§

Required Methods§

source

fn send_random<'life0, 'life1, 'life2, 'life3, 'async_trait, RNG>( &'life0 mut self, count: usize, rng: &'life1 mut RNG, sender: &'life2 Sender<Self::Msg>, receiver: &'life3 mut Receiver<Self::Msg> ) -> Pin<Box<dyn Future<Output = Result<Vec<[Block; 2]>, 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,

Send count number of random OTs via the provided channel.

Object Safety§

This trait is not object safe.

Implementors§