-
Notifications
You must be signed in to change notification settings - Fork 99
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
2370 staketable update validator identification keys #2373
Merged
alysiahuggins
merged 35 commits into
main
from
2370-staketable-update-validator-identification-keys
Jan 15, 2025
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
978cd8f
add stake table tests
alysiahuggins 2bc6d75
remove stake types
alysiahuggins c8812ef
verify token allowance, balance and reprioritize verification order o…
alysiahuggins e33bf9b
set the fixed stake amount, added related tests, updated data types
alysiahuggins 7bd7f4b
add more verification checks to the withdraw function
alysiahuggins 2b2411c
updated errror types
alysiahuggins d7a352d
Merge branch 'main' into 2304-stake-table-registration
alysiahuggins 584e320
added TODO statements in comments to be explicit about outdated funct…
alysiahuggins 59c2109
a validator/node is identified by the msg.sender, blskey and schnorrk…
alysiahuggins 23b0fb0
Merge branch 'main' into 2304-stake-table-registration
alysiahuggins ec4b02b
Merge branch '2304-stake-table-registration' into 2370-staketable-upd…
alysiahuggins 9777b99
merged from the fixed stake branch and modified test to include the i…
alysiahuggins b9c7022
not required to get the blsSig for a withdrawal since we have the eth…
alysiahuggins 9303444
add the ability to update consensus keys
alysiahuggins 3a264c1
add the ability to update consensus keys
alysiahuggins 955a69d
merge with main
alysiahuggins 1f171dd
remove vscode settings
alysiahuggins f237074
add test or happy path of updating consensus keys
alysiahuggins 8800893
added unhappy path tests on based on no key changes and changed the b…
alysiahuggins cee5a6f
added comment to newly added function on StakeTable and added tests t…
alysiahuggins f8c0210
change the lookup node and lookup stake functions to use their ethere…
alysiahuggins 5124d9d
updated updateConsensusKeys function, enhance test coverage
alysiahuggins 6a34dae
added todo
alysiahuggins 548b28c
Merge branch 'main' into 2370-staketable-update-validator-identificat…
alysiahuggins 5df564c
updated test to use the new seed so that a new schnorr key could be g…
alysiahuggins 83f1a70
Update contracts/src/StakeTable.sol
alysiahuggins 9d1b2b1
Merge branch 'main' into 2370-staketable-update-validator-identificat…
alysiahuggins e1b7e25
check for invalid bls and schnorr keys on register
alysiahuggins 178e680
Merge branch 'main' into 2370-staketable-update-validator-identificat…
alysiahuggins 48db5c4
update test comments so that they are clearer
alysiahuggins 5f3a988
updateConsensusKeys reverts when the keys the same as the old ones, n…
alysiahuggins 638ed78
updating consensus keys revert if any VK is a zero point VK
alysiahuggins 0cc8946
clarifies that the bls sig proves
alysiahuggins 2821408
Merge branch 'main' into 2370-staketable-update-validator-identificat…
alysiahuggins 63fa46d
Merge branch 'main' into 2370-staketable-update-validator-identificat…
alysiahuggins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do I understand correctly that we check that the keys are not zero when if consensus keys are updated but we don't check for that during registration? Is that intentional?
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.
I guess we don't need to check the blsVk because we verify a signature but what about the schnorrVk?
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.
yes you're right, there should be checks on the vk(s) here too!
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.
added checks on zero point keys e1b7e25