We need to modify our commit/reveal mechanism to allow validators to submit multiple weight commits without overwriting previous ones. The nonce for each commit will be generated by the Python client rather than on-chain.
Acceptance Criteria
Validators should be able to submit multiple weight commits without overwriting previous pending commits.
Each commit should be identified by a client-generated nonce.
Validators should be able to reveal any of their pending commits within the reveal period.
The system should maintain the existing time constraints for the reveal period.
If a reveal is successful, only the revealed commit should be removed from the pending commits.
Tasks
Modify the storage structure to allow multiple pending commits per validator.
Description
We need to modify our commit/reveal mechanism to allow validators to submit multiple weight commits without overwriting previous ones. The nonce for each commit will be generated by the Python client rather than on-chain.
Acceptance Criteria
Tasks
do_commit_weights
function to add new commits with client-provided nonces.do_reveal_weights
function to work with the new multi-commit system, allowing reveal of any valid pending commit.Additional Considerations