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

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Oct 23, 2023
1 parent d8fc9ee commit f17ceb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dkg/key_generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,13 @@ impl<C: CipherSuite> DistributedKeyGeneration<RoundOne, C> {
Ok(_) => {
valid_participants.push(p.clone());
their_commitments.push(p.commitments.as_ref().unwrap().clone());
their_dh_public_keys.insert(p.index, p.dh_public_key.clone());
their_dh_public_keys.insert(p.index, p.dh_public_key);
}
Err(_) => misbehaving_participants.push(p.index),
}
} else {
valid_participants.push(p.clone());
their_dh_public_keys.insert(p.index, p.dh_public_key.clone());
their_dh_public_keys.insert(p.index, p.dh_public_key);
}
}
Err(_) => misbehaving_participants.push(p.index),
Expand Down Expand Up @@ -905,7 +905,7 @@ impl<C: CipherSuite> DistributedKeyGeneration<RoundOne, C> {
.is_err()
{
complaints.push(Complaint::<C>::new(
&pk,
pk,
&self.state.dh_private_key,
&dh_shared_key,
encrypted_share,
Expand Down

0 comments on commit f17ceb3

Please sign in to comment.