pub struct MpcShare {
pub party: u8,
pub share: bool,
}Expand description
A toy 2-party XOR secret-sharing based MPC for boolean functions.
Each party holds a share; shares XOR to the actual value. Only XOR gates can be computed locally; AND requires interaction.
§WARNING
Educational GMW-style sketch. Not secure or complete.
Fields§
§party: u8Party index (0 or 1)
Boolean share of some wire value
Implementations§
Trait Implementations§
Auto Trait Implementations§
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