Skip to content

Commit d66c80d

Browse files
danielxiangzlclaude
andcommitted
[consensus] Fix rustfmt: collapse parallel_multi_pairing call
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 85cd15a commit d66c80d

File tree

1 file changed

+2
-6
lines changed
  • crates/aptos-dkg/src/weighted_vuf/pinkas

1 file changed

+2
-6
lines changed

crates/aptos-dkg/src/weighted_vuf/pinkas/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,8 @@ impl WeightedVUF for PinkasWUF {
257257

258258
let lhs: Vec<G1Projective> = pis.into_iter().chain([pp.g_neg]).collect();
259259
let rhs: Vec<G2Projective> = shares.into_iter().chain([h.mul(sum_of_taus)]).collect();
260-
if parallel_multi_pairing(
261-
lhs.iter(),
262-
rhs.iter(),
263-
thread_pool,
264-
MIN_MULTIPAIR_NUM_JOBS,
265-
) != Gt::identity()
260+
if parallel_multi_pairing(lhs.iter(), rhs.iter(), thread_pool, MIN_MULTIPAIR_NUM_JOBS)
261+
!= Gt::identity()
266262
{
267263
bail!("Multipairing check in batched aggregate verification failed");
268264
}

0 commit comments

Comments
 (0)