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
Required Methods
Runs any one-time initialization to create the oblivious transfer object.