From 509de1f9850b5074bbde503addfd105fb4de2ec0 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Sat, 9 Sep 2023 11:05:38 -0400 Subject: [PATCH] Bump Rust toolchain and fix clippy --- rust-toolchain | 2 +- src/keygen.rs | 7 ++++--- src/signature.rs | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/rust-toolchain b/rust-toolchain index 3ebf789..af92bdd 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.56.0 +1.63.0 diff --git a/src/keygen.rs b/src/keygen.rs index c631b8e..1c98a97 100644 --- a/src/keygen.rs +++ b/src/keygen.rs @@ -538,7 +538,7 @@ use aes::cipher::{generic_array::GenericArray, FromBlockCipher, NewBlockCipher, use aes::{Aes256, Aes256Ctr}; /// Errors that may happen during Key Generation -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum Error { /// Serialisation error SerialisationError, @@ -1182,6 +1182,7 @@ mod private { /// State machine structures for holding intermediate values during a /// distributed key generation protocol run, to prevent misuse. +#[allow(dead_code)] #[derive(Clone, Debug)] pub struct DistributedKeyGeneration { state: Box, @@ -2038,7 +2039,7 @@ impl EncryptedSecretShare { } /// A proof that a generated complaint is valid. -#[derive(Clone, Copy, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct ComplaintProof { /// a1 = g^r. pub a1: RistrettoPoint, @@ -2080,7 +2081,7 @@ impl ComplaintProof { } /// A complaint generated when a participant receives a bad share. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct Complaint { /// The index of the complaint maker. pub maker_index: u32, diff --git a/src/signature.rs b/src/signature.rs index 88e779f..910113e 100644 --- a/src/signature.rs +++ b/src/signature.rs @@ -56,7 +56,7 @@ use crate::precomputation::SecretCommitmentShareList; pub use crate::keygen::SecretKey; /// Errors that may happen during Signing -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum SignatureError { /// The participant is missing commitment shares MissingCommitmentShares, @@ -453,6 +453,7 @@ impl SecretKey { pub trait Aggregator {} /// The internal state of a signature aggregator. +#[allow(dead_code)] #[derive(Debug)] pub(crate) struct AggregatorState { /// The protocol instance parameters.