pub struct SecureAggregation {
pub parties: Vec<AggregationParty>,
}Expand description
The secure aggregation session.
Fields§
§parties: Vec<AggregationParty>Implementations§
Source§impl SecureAggregation
impl SecureAggregation
pub fn new(party_count: u32) -> Self
Sourcepub fn establish_masks(&mut self)
pub fn establish_masks(&mut self)
Establish pairwise masks between all parties. Each pair (i, j) generates a shared random mask: i adds it, j subtracts it. When summed, masks cancel.
Sourcepub fn masked_values(&self) -> Vec<i64>
pub fn masked_values(&self) -> Vec<i64>
Each party computes their masked value: v_i + sum(masks_to_apply).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecureAggregation
impl RefUnwindSafe for SecureAggregation
impl Send for SecureAggregation
impl Sync for SecureAggregation
impl Unpin for SecureAggregation
impl UnsafeUnpin for SecureAggregation
impl UnwindSafe for SecureAggregation
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