-
Notifications
You must be signed in to change notification settings - Fork 2
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
Properly pack multisig metadata and compute checkpoint digest #26
Conversation
yorhodes
commented
Dec 13, 2022
•
edited
Loading
edited
- Import bytes_extended and pack metadata
- fixes Solidity-compatible checkpoint digest in MultisigIsm #21
6b4dbcf
to
c6aac86
Compare
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.
Also think it's worth testing all this to compare functionality to what we already do in the agents
c15266d
to
c32d57a
Compare
// Write 32 | ||
offset = _self.write_u16(offset, 32u16); |
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.
@tkporter this might be wrong actually, we need to write the bytes separately?
* Add EncodedMessage * Properly pack multisig metadata and compute checkpoint digest (#26) * Use packed bytes encoding * Multisig ISM metadata tests (#32) * Don't copy / allocate new bytes in read_bytes (#34) * Move away from using the stack in favor of using structs to get references of non-reference types (#27) * Add domain hash tests * Add checkpoint hash tests * Add tests for enroll validators * Build compact signatures in tests * Verify 32 random messages in multisig tests * Add negative test cases to verify --------- Co-authored-by: Trevor Porter <trkporter@ucdavis.edu>