pub trait Senderwhere
    Self: Sized,
{ type Msg: Sized + AsMut<[u8]>; fn init<C: AbstractChannel, RNG: CryptoRng + Rng>(
        channel: &mut C,
        rng: &mut RNG
    ) -> Result<Self, Error>; fn send<C: AbstractChannel, RNG: CryptoRng + Rng>(
        &mut self,
        channel: &mut C,
        inputs: &[(Self::Msg, Self::Msg)],
        rng: &mut RNG
    ) -> Result<(), Error>; }
Expand description

Trait for one-out-of-two oblivious transfer from the sender’s point-of-view.

Required Associated Types

Message type, restricted to types that are mutably-dereferencable as u8 arrays.

Required Methods

Runs any one-time initialization to create the oblivious transfer object.

Sends messages.

Implementors