From 74c3911398269590e7b981b736733e9e3899226f Mon Sep 17 00:00:00 2001 From: zer0x64 Date: Mon, 9 Mar 2020 13:45:33 -0400 Subject: [PATCH] Derived Clone for Share --- src/share.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share.rs b/src/share.rs index c7cd53c..c6b861b 100644 --- a/src/share.rs +++ b/src/share.rs @@ -21,6 +21,7 @@ use super::field::GF256; /// let shares_bytes: Vec> = ask_shares(); /// let shares: Vec = 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,