Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from toposware/bump-version
Browse files Browse the repository at this point in the history
Bump Rust toolchain and fix clippy
  • Loading branch information
Nashtare authored Sep 9, 2023
2 parents 35e6911 + 509de1f commit 95f4ad7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.56.0
1.63.0
7 changes: 4 additions & 3 deletions src/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<S: DkgState> {
state: Box<ActualState>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 95f4ad7

Please sign in to comment.