pub trait Receiverwhere
Self: Sized,{
type Msg: Sized + AsMut<[u8]>;
fn init<C: AbstractChannel, RNG: CryptoRng + Rng>(
channel: &mut C,
rng: &mut RNG
) -> Result<Self, Error>;
fn receive<C: AbstractChannel, RNG: CryptoRng + Rng>(
&mut self,
channel: &mut C,
inputs: &[bool],
rng: &mut RNG
) -> Result<Vec<Self::Msg>, Error>;
}
Expand description
Trait for one-out-of-two oblivious transfer from the receiver’s point-of-view.
Required Associated Types
Required Methods
Runs any one-time initialization to create the oblivious transfer object.