Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyluis committed Nov 13, 2024
1 parent fabd7d4 commit 073cf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ pub fn try_aggregate_signature_shares(signer: &Signer, task_id: &str) -> Option<
debug!("Signature share {} {}/{}", &task_id[..6], signature_shares.len(), signing_commitments.len() )
}

if signature_shares.len() < keypair.pub_key.verifying_shares().len() || signature_shares.len() < signing_commitments.len() {
if signature_shares.len() < keypair.priv_key.min_signers().clone() as usize || signature_shares.len() < signing_commitments.len() {
return None
}

Expand Down

0 comments on commit 073cf63

Please sign in to comment.