-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2370 staketable update validator identification keys (#2373)
* add stake table tests * remove stake types * verify token allowance, balance and reprioritize verification order on registration * set the fixed stake amount, added related tests, updated data types * add more verification checks to the withdraw function * updated errror types * added TODO statements in comments to be explicit about outdated functions that need to be updated to the new spec * a validator/node is identified by the msg.sender, blskey and schnorrkey. todo: add tests * merged from the fixed stake branch and modified test to include the inclusion of the blsKey * not required to get the blsSig for a withdrawal since we have the eth account the validator registered with * add the ability to update consensus keys * add the ability to update consensus keys * remove vscode settings * add test or happy path of updating consensus keys * added unhappy path tests on based on no key changes and changed the blsVK comparison to field by field comparison so that it is more efficient and more obvious what is going on * added comment to newly added function on StakeTable and added tests that have been commented out for now * change the lookup node and lookup stake functions to use their ethereum address, update related implementations and add tests * updated updateConsensusKeys function, enhance test coverage * added todo * updated test to use the new seed so that a new schnorr key could be generated * Update contracts/src/StakeTable.sol Co-authored-by: Philippe Camacho <[email protected]> * check for invalid bls and schnorr keys on register * update test comments so that they are clearer * updateConsensusKeys reverts when the keys the same as the old ones, no change occurs if both keys are zero and only one key is changed if the other is a zero key * updating consensus keys revert if any VK is a zero point VK * clarifies that the bls sig proves --------- Co-authored-by: Philippe Camacho <[email protected]>
- Loading branch information
1 parent
6e1dc58
commit 97308ad
Showing
4 changed files
with
639 additions
and
100 deletions.
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.