Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
curiecrypt committed Jan 15, 2025
1 parent 1ff40a7 commit 1915514
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions examples/simple_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,14 @@ impl ThresholdSignature {
let final_signature = aggregate_signature.to_signature();

let public_key_refs: Vec<&PublicKey> = self.key_list.iter().collect();
let Ok(aggregate_verification_key) = AggregatePublicKey::aggregate(public_key_refs.as_slice(), false)else {
let Ok(aggregate_verification_key) =
AggregatePublicKey::aggregate(public_key_refs.as_slice(), false)
else {
return false;
};
let final_verification_key = aggregate_verification_key.to_public_key();

let result = final_signature.verify(
false,
msg,
&[],
&[],
&final_verification_key,
false,
);
let result = final_signature.verify(false, msg, &[], &[], &final_verification_key, false);
result == BLST_ERROR::BLST_SUCCESS
}

Expand Down

0 comments on commit 1915514

Please sign in to comment.