-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate aggregate signature verification (#11954)
We had batch signature verification logic both in `attestation_service.go` and `aggregate_and_proof_service.go`. I made that functionality pretty generic so that both services can now simply "push" `AggregateVerificationData` into `BatchVerifier`. `BatchVerifier` will process those signature validations in at most 50ms or when the aggregated number of signatures are more than 100. In case of success it runs corresponding generic `func()` and publishes the existing gossip data into the gossip network. In case of failed signature validation it simply bans corresponding peer. Gossip data, func() and peer is already passed in `AggregateVerificationData`for these processing --------- Co-authored-by: shota.silagadze <shota.silagadze@taal.com>
- Loading branch information
1 parent
43f787f
commit 614c46f
Showing
9 changed files
with
208 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.