Closed Nashtare closed 1 year ago
Base: 88.62% // Head: 87.25% // Decreases project coverage by -1.36%
:warning:
Coverage data is based on head (
33cad91
) compared to base (1897d34
). Patch coverage: 26.66% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR implements an optimization of the aggregate() method, that can yield up to 90% speed-up for this phase when running with large settings (i.e. 666-out-of-1000 for instance), and still yields nice reduction factors with smaller instances (3 times faster on my machine for 66-out-of-100).
It consists in computing the aggregated signature first, without verifying individual signatures, and verifying solely the aggregated signature. If the verification fails, then we proceed to individual signatures checks to identify the malicious participants, as was done previously.
It induces an API change though (theaggregate()
method now takes themessage_hash
as argument). @atanmarko as you're working on the FROST integration, I'm tagging you as well in case this requires some coordination on the topos-node side.Ref: https://mailarchive.ietf.org/arch/msg/cfrg/QQhyjvvcoaqLslaX3gWwABqHN-s/