pub struct ShareSet { /* private fields */ }Expand description
The shares of one split, as each custodian receives them.
The runtime holds the parts and nothing of the arithmetic: what it needs
is to hand one share to a step that names it under reads:, and to say
how many there are. A share has no canonical byte form here; laying it
out is a container’s job, in a file or on paper. Each share’s y is
wiped when the set is dropped, and Debug prints counts only.
Implementations§
Sourcepub fn new(threshold: u8, shares: impl IntoIterator<Item = Share>) -> Self
pub fn new(threshold: u8, shares: impl IntoIterator<Item = Share>) -> Self
A set of shares, index 1 first, of which threshold reconstruct
the secret.
The share with this index, from 1.
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