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

Properly pack multisig metadata and compute checkpoint digest #26

Merged
merged 7 commits into from
Dec 15, 2022

Conversation

yorhodes
Copy link
Member

@yorhodes yorhodes commented Dec 13, 2022

@yorhodes yorhodes marked this pull request as ready for review December 14, 2022 21:21
Copy link
Collaborator

@tkporter tkporter left a 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

bytes-extended/src/main.sw Outdated Show resolved Hide resolved
multisig-ism/src/metadata.sw Outdated Show resolved Hide resolved
multisig-ism/src/metadata.sw Outdated Show resolved Hide resolved
multisig-ism/src/metadata.sw Outdated Show resolved Hide resolved
@yorhodes yorhodes merged commit 342d832 into yorhodes/multisig-ism Dec 15, 2022
Comment on lines +387 to +388
// Write 32
offset = _self.write_u16(offset, 32u16);
Copy link
Member Author

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?

yorhodes added a commit that referenced this pull request Apr 6, 2023
* 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>
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