pub trait Receiverwhere
Self: Sized,{
type Msg: Sized + AsMut<[u8]>;
// Required methods
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§
Object Safety§
This trait is not object safe.