Skip to content

Commit

Permalink
fmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Sep 26, 2023
1 parent 0f35505 commit a82928a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/net.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
use hashbrown::HashMap;
use p256k1::{
ecdsa,
scalar::Scalar,
};
use p256k1::{ecdsa, scalar::Scalar};
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};

use crate::{
common::{PolyCommitment, PublicNonce, SignatureShare},
};
use crate::common::{PolyCommitment, PublicNonce, SignatureShare};

/// Trait to encapsulate sign/verify, users only need to impl hash
pub trait Signable {
Expand Down Expand Up @@ -96,7 +91,7 @@ pub struct DkgPublicShares {
/// Signer ID
pub signer_id: u32,
/// (party_id, commitment)
pub comms: Vec<(u32, PolyCommitment)>,
pub comms: Vec<(u32, PolyCommitment)>,
}

impl Signable for DkgPublicShares {
Expand Down

0 comments on commit a82928a

Please sign in to comment.