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`.
master
Andreas Fackler 7 years ago committed by Vladimir Komendantskiy
parent 17fdffa90f
commit e3a401bcb9
  1. 2
      mod.rs
  2. 4
      poly.rs

@ -104,7 +104,7 @@ impl Signature {
} }
/// A secret key, or a secret key share. /// A secret key, or a secret key share.
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct SecretKey(Fr); pub struct SecretKey(Fr);
impl Default for SecretKey { impl Default for SecretKey {

@ -390,8 +390,8 @@ impl BivarPoly {
} }
} }
/// A commitment to a bivariate polynomial. /// A commitment to a symmetric bivariate polynomial.
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)]
pub struct BivarCommitment { pub struct BivarCommitment {
/// The polynomial's degree in each of the two variables. /// The polynomial's degree in each of the two variables.
degree: usize, degree: usize,

Loading…
Cancel
Save