pub trait CotSender: Connected + Send {
type Error;
// Required method
fn correlated_send_into<B, F>(
&mut self,
ots: &mut B,
correlation: F,
) -> impl Future<Output = Result<(), Self::Error>> + Send
where B: Buf<Block>,
F: FnMut(usize) -> Block + Send;
// Provided method
fn correlated_send<F>(
&mut self,
count: usize,
correlation: F,
) -> impl Future<Output = Result<Vec<Block>, Self::Error>> + Send
where F: FnMut(usize) -> Block + Send { ... }
}
Expand description
Correlated OT sender (C-OT).
Required Associated Types§
Required Methods§
Provided Methods§
Random OTs correlated by the `correlation`` function..
The correlation function is passed the index of a C-OT and must output the correlation for this C-OT.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.