diff --git a/mod.rs b/mod.rs index e879392..29dbb7b 100644 --- a/mod.rs +++ b/mod.rs @@ -104,7 +104,7 @@ impl Signature { } /// A secret key, or a secret key share. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct SecretKey(Fr); impl Default for SecretKey { diff --git a/poly.rs b/poly.rs index b58ad01..f03dab6 100644 --- a/poly.rs +++ b/poly.rs @@ -390,8 +390,8 @@ impl BivarPoly { } } -/// A commitment to a bivariate polynomial. -#[derive(Debug, Clone, Serialize, Deserialize)] +/// A commitment to a symmetric bivariate polynomial. +#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)] pub struct BivarCommitment { /// The polynomial's degree in each of the two variables. degree: usize,