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

fix(contracts/core): include msg sender in createValidator digest #2779

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

kevinhalliday
Copy link
Contributor

@kevinhalliday kevinhalliday commented Jan 10, 2025

Include msg.sender in digest to be signed by cons pub key
passed in createValidator(). This prevents front running createValidator transactions.

This is not an active issue, as we have an allowlist of validators. But will be important when that allowlist is disabled.

Additional:

  • refactor to use 33 byte compressed pubkey, instead of x y coords
  • cleanup
  • add back tests for createValidator w/o signature

issue: #2773

Additional:
- refactor to use 33 byte compressed pubkey, instead of x y coords
@kevinhalliday kevinhalliday merged commit 6505eca into main Jan 13, 2025
19 checks passed
@kevinhalliday kevinhalliday deleted the kh/staking-fixes branch January 13, 2025 14:33
kevinhalliday added a commit that referenced this pull request Jan 28, 2025
Update eip712 typehash to match digest.

We changed digest in #2779 but did not update typehash. Not a real
issue, but good to be correct.

issue: none
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