Struct mpc_engine::party::Party
source · pub struct Party { /* private fields */ }
Expand description
A struct defining protocol party state during a protocol execution.
Implementations§
source§impl Party
impl Party
sourcepub fn new(
channels: ChannelConfig,
circuit: &Circuit,
logging: bool,
entropy: Randomness
) -> Self
pub fn new( channels: ChannelConfig, circuit: &Circuit, logging: bool, entropy: Randomness ) -> Self
Initialize an MPC party.
This generates the party’s global MAC key and sets the protocol phase to
PreInit
.
sourcepub fn input_processing(
&mut self,
circuit: &Circuit,
input_values: &[bool]
) -> Result<(Vec<(usize, bool)>, Vec<(usize, usize, [u8; 16])>), Error>
pub fn input_processing( &mut self, circuit: &Circuit, input_values: &[bool] ) -> Result<(Vec<(usize, bool)>, Vec<(usize, usize, [u8; 16])>), Error>
Run the input-processing phase of the protocol.
Auto Trait Implementations§
impl Freeze for Party
impl RefUnwindSafe for Party
impl Send for Party
impl !Sync for Party
impl Unpin for Party
impl UnwindSafe for Party
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