Derived Clone for Share
This commit is contained in:
parent
391edbd7da
commit
74c3911398
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue