pub struct Share {
pub x: u32,
pub y: Scalar,
}Expand description
A Shamir share: (x, y) where x is the party index and y is a scalar.
The secret y field is zeroized on drop.
Fields§
§x: u32Party index (the x-coordinate). Typically 1-based per FROST convention.
y: ScalarThe share value (the y-coordinate).
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