Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Jul 12, 2025

Future Work: #903

@patrick-ogrady patrick-ogrady requested a review from Copilot July 12, 2025 17:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the threshold signature recovery by introducing a configurable concurrency parameter and using Rayon to parallelize the recovery process.

  • Adds a concurrency argument to threshold_signature_recover_multiple
  • Builds a Rayon thread pool with the specified thread count
  • Parallelizes per-eval signature recovery and updates threshold_signature_recover_pair to pass a fixed concurrency of 2
Comments suppressed due to low confidence (2)

cryptography/src/bls12381/primitives/ops.rs:471

  • Adding a new required concurrency parameter is a breaking API change; consider providing a default overload or marking the change in the next major version to preserve backward compatibility.
    concurrency: usize,

cryptography/src/bls12381/primitives/ops.rs:471

  • [nitpick] Parallel recovery logic with custom concurrency values should be covered by unit or integration tests (e.g., concurrency=1, concurrency>tasks) to ensure correctness and no regressions.
    concurrency: usize,

@patrick-ogrady patrick-ogrady marked this pull request as ready for review July 12, 2025 17:49
@patrick-ogrady patrick-ogrady added this to the v0.0.56 milestone Jul 12, 2025
@patrick-ogrady patrick-ogrady merged commit 47c54fb into main Jul 12, 2025
30 checks passed
@patrick-ogrady patrick-ogrady deleted the concurrent-msm branch July 12, 2025 18:13
@codecov
Copy link

codecov bot commented Jul 12, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.

Project coverage is 91.02%. Comparing base (d972dce) to head (c0d9b7c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cryptography/src/bls12381/primitives/ops.rs 72.72% 6 Missing ⚠️
@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
- Coverage   91.02%   91.02%   -0.01%     
==========================================
  Files         236      236              
  Lines       57667    57684      +17     
==========================================
+ Hits        52494    52505      +11     
- Misses       5173     5179       +6     
Files with missing lines Coverage Δ
cryptography/src/bls12381/primitives/ops.rs 97.12% <72.72%> (-0.43%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d972dce...c0d9b7c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants