You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚡️ Optimise gas usage when enabling p256 validator, add a few comments (#52)
* ⚡️ Optimise gas usage when enabling p256 validator, add a few comments
- Reducing the number of indexed variable inside a log highly decrease his gas usage, in the p256 validator, we only matter about the kernel account as index (it's 375 gas per topic, so per indexed props, so reducing the index on both key reduce the enabling gas cost by 375 * 4 -> 1500 gas)
- Add a few reflexion todo comment, do you rly need to send the previous key in the event? Since it's cost with a `sload`& also in the event itself
* ⚡️ Remove the oldKeys for the event signature
* ⚡️ Only compare to raw msg signing instead of eth signed message for p256
0 commit comments