Commit 6a31f4c
This PR reduces the number of signature share validations from `N` to
`f+1`, which are enough to aggregate the full signature. The strategy is
very similar to the one done in #6526 to reduce the number of dealing
supports: we introduce an in-memory map that keeps track for each
`RequestId`, the set of share signers already validated. Once that set
reaches a cardinality of `f+1`, we stop validating more signature shares
for that `RequestId`. We follow the same approach as in #7069 to do all
that in parallel: check with shared access to the lock, then perform the
cryptographic validation and if valid, check again with exclusive access
to the lock.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e822267 commit 6a31f4c
4 files changed
Lines changed: 331 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments