pub struct Share<'a, T: MersenneField> {
pub id: &'a str,
pub value: T,
}
Expand description
Represents an additive share of a private element in certain algebraic structure.
We need to make clear that the value
field do not represent the value
that the share is trying to hide. On the contrary, this field stores the
value that a party holds once the shares of a private element have been
computed and distributed.
Fields§
§id: &'a str
ID of the share in memory.
value: T
Value that the share holds.
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