Skip to content

Conversation

stevennevins
Copy link
Contributor

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
Contributor 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
@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