pub struct Share { /* private fields */ }
Trait Implementations
fn hash(&self, hashers: &mut PackedHasher)
sourcefn pack_selected(dst: &mut [Vec<u8>; 8], src: &[Self], selected: [usize; 8])
fn pack_selected(dst: &mut [Vec<u8>; 8], src: &[Self], selected: [usize; 8])
Extract and save (to dst) the shares of the selected players from the sharings.
E.g. given a 2 packed sharing between 4 players:
abcd|1234
Between players: Read morefn unpack_selected(
dst: &mut Vec<ShareGF2>,
src: &[&[u8]; 8],
selected: [usize; 8]
)
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be
Self