erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.11k stars 1.09k forks source link

optimise attestation signature verification #11940

Closed shotasilagadze closed 6 days ago

shotasilagadze commented 1 week ago

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.