shutter-network / rolling-shutter

Rolling Shutter is an MEV protection system to be plugged into rollups.
https://twitter.com/project_shutter/
26 stars 7 forks source link

Message handling optimization #454

Open jannikluhn opened 2 weeks ago

jannikluhn commented 2 weeks ago
jannikluhn commented 4 days ago

We do an unnecessary epoch secret key share verification during decryption key share handling: DecryptionKeyShareHandler.HandleMessage -> DecryptionKeyShareHandler.aggregateDecryptionKeySharesFromDB -> epochKG.HandleEpochSecretKeyShare -> VerifyEpochSecretKeyShare

Preliminary benchmarks suggest that this is the bottleneck of the handler. We should check if this can be removed (ie is only called on trusted inputs) and if so remove it. If not, maybe there's a way to pass a flag to disable the check.