From 784c815fe799b9df4af84aa5f127fb728f3318e8 Mon Sep 17 00:00:00 2001 From: Andreas Fackler Date: Fri, 8 Feb 2019 10:46:25 +0100 Subject: [PATCH] Make `PublicKeySet` orderable, too. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 40e72ec..83a9bed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -526,7 +526,7 @@ impl Hash for DecryptionShare { } /// A public key and an associated set of public key shares. -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] +#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, Ord, PartialOrd)] pub struct PublicKeySet { /// The coefficients of a polynomial whose value at `0` is the "master key", and value at /// `i + 1` is key share number `i`.