pub struct Evaluator<Wire> { /* private fields */ }Expand description
Streaming evaluator using a callback to receive ciphertexts as needed.
Evaluates a garbled circuit on the fly, using messages containing ciphertexts and wires. Parallelizable.
Implementations§
Trait Implementations§
Source§impl<W: BinaryWireLabel> FancyBinary for Evaluator<W>
impl<W: BinaryWireLabel> FancyBinary for Evaluator<W>
Source§impl<Wire: WireLabel<F2>> FancyEncode<F2> for Evaluator<Wire>
impl<Wire: WireLabel<F2>> FancyEncode<F2> for Evaluator<Wire>
Source§fn encode_many(
&mut self,
_: &[F2],
_: &mut Channel<'_>,
) -> Result<Vec<Self::Item>>
fn encode_many( &mut self, _: &[F2], _: &mut Channel<'_>, ) -> Result<Vec<Self::Item>>
Encode many wires for known values.
Source§fn receive_many(
&mut self,
n: usize,
channel: &mut Channel<'_>,
) -> Result<Vec<Self::Item>>
fn receive_many( &mut self, n: usize, channel: &mut Channel<'_>, ) -> Result<Vec<Self::Item>>
Receive many wires for unknown values.
Auto Trait Implementations§
impl<Wire> Freeze for Evaluator<Wire>where
Wire: Freeze,
impl<Wire> RefUnwindSafe for Evaluator<Wire>where
Wire: RefUnwindSafe,
impl<Wire> Send for Evaluator<Wire>where
Wire: Send,
impl<Wire> Sync for Evaluator<Wire>where
Wire: Sync,
impl<Wire> Unpin for Evaluator<Wire>where
Wire: Unpin,
impl<Wire> UnsafeUnpin for Evaluator<Wire>where
Wire: UnsafeUnpin,
impl<Wire> UnwindSafe for Evaluator<Wire>where
Wire: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T