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

feat: ecdsa key rotation #252

Merged
merged 16 commits into from
May 23, 2024
Merged

feat: ecdsa key rotation #252

merged 16 commits into from
May 23, 2024

Conversation

stevennevins
Copy link
Collaborator

No description provided.

Copy link
Contributor

@ChaoticWalrus ChaoticWalrus left a 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.

@stevennevins
Copy link
Collaborator Author

@ChaoticWalrus addressed the PR comments and added two more unit tests for reference block number checks

Copy link
Contributor

@ChaoticWalrus ChaoticWalrus left a 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.

@stevennevins stevennevins merged commit afbcba8 into dev May 23, 2024
3 checks passed
@stevennevins stevennevins deleted the feat/ecdsa-key-rotation branch May 23, 2024 15:34
aroralanuk added a commit to hyperlane-xyz/hyperlane-monorepo that referenced this pull request May 27, 2024
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants