-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: ecdsa key rotation #252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one edge case that -- while it doesn't seem likely to be exploited -- could theoretically let a deserving party avoid slashing, by changing keys twice in the same block and signing with the "ephemeral" key, which would never make it into historical storage.
I believe it could be solved by preventing multiple signing key updates within the same block. Implementing this check within the _updateOperatorSigningKey
function seems most appropriate to me, personally.
Otherwise the PR LGTM.
@ChaoticWalrus addressed the PR comments and added two more unit tests for reference block number checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like everything I flagged before has been addressed. Thanks! Giving this approval now.
### Description - Adding support for attesting signing key and key rotation from here Layr-Labs/eigenlayer-middleware#252 ### Drive-by changes None ### Related issues None ### Backward compatibility Yes ### Testing Tested by Eigenlayer here: https://github.com/Layr-Labs/eigenlayer-middleware/blob/dev/test/unit/ECDSAStakeRegistryUnit.t.sol
No description provided.