From e3a401bcb983afc1cdedb3999f6074131d52bc18 Mon Sep 17 00:00:00 2001 From: Andreas Fackler Date: Mon, 25 Jun 2018 13:07:31 +0200 Subject: [PATCH] Make SyncKeyGen NodeUid-aware. This allows the caller to address nodes by ID instead of by index. Also contains a few other minor changes that will be needed for `DynamicHoneyBadger`. --- mod.rs | 2 +- poly.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,