Derived Clone for Share

This commit is contained in:
zer0x64 2020-03-09 13:45:33 -04:00
parent 391edbd7da
commit 74c3911398
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ use super::field::GF256;
/// let shares_bytes: Vec<Vec<u8>> = ask_shares();
/// let shares: Vec<Share> = shares_bytes.iter().map(|s| Share::from(s.as_slice())).collect();
/// let secret = sharks.recover(&shares).unwrap();
#[derive(Clone)]
pub struct Share {
pub x: GF256,
pub y: Vec<GF256>,