Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimise attestation signature verification #11940

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

shotasilagadze
Copy link
Contributor

@shotasilagadze shotasilagadze commented Sep 10, 2024

Using signature aggregate validation now for attestation service.

pprof BEFORE the changes:
Screenshot 2024-09-11 at 00 18 28

pprof AFTER the changes:
Screenshot 2024-09-10 at 23 27 51

It shows to speed up the process more than 10 times. Also note that in the tests I was accumulating ALL the attestation regardless having a validator/aggregator for that specific slot/committee. But we can safely say that it would have the same speeding up effect in other cases as well.

@shotasilagadze shotasilagadze marked this pull request as draft September 10, 2024 17:44
@shotasilagadze shotasilagadze marked this pull request as ready for review September 11, 2024 08:17
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch 2 times, most recently from fa1ab2c to f3e4826 Compare September 11, 2024 08:28
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch 2 times, most recently from 0155d00 to d861ebd Compare September 11, 2024 10:42
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch from d861ebd to c1cc8a3 Compare September 11, 2024 10:54
cl/beacon/handler/pool.go Outdated Show resolved Hide resolved
cl/phase1/network/services/attestation_service.go Outdated Show resolved Hide resolved
cl/phase1/network/services/attestation_service.go Outdated Show resolved Hide resolved
cl/phase1/network/services/attestation_service.go Outdated Show resolved Hide resolved
cl/phase1/network/services/attestation_service.go Outdated Show resolved Hide resolved
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch 2 times, most recently from c1289e9 to 16bf096 Compare September 11, 2024 12:31
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch 4 times, most recently from 57feee0 to c77683d Compare September 12, 2024 08:40
@shotasilagadze shotasilagadze force-pushed the optimise-attestation-signature-verification branch from c77683d to c2f617f Compare September 12, 2024 14:40
@Giulio2002 Giulio2002 merged commit be2b431 into main Sep 12, 2024
9 checks passed
@Giulio2002 Giulio2002 deleted the optimise-attestation-signature-verification branch September 12, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants