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

MastForest serialization #1370

Merged
merged 130 commits into from
Jul 17, 2024
Merged

MastForest serialization #1370

merged 130 commits into from
Jul 17, 2024

Conversation

plafer
Copy link
Contributor

@plafer plafer commented Jun 27, 2024

Builds on #1359

Implements serialization of MastForest, as described in 0xPolygonMiden/compiler#132 (and taking into account @bobbinth's comments).

Notably, MastNodeType has been implemented to fit into 8 bytes instead of the proposed 9.

@plafer plafer requested a review from bobbinth July 12, 2024 14:53
@plafer
Copy link
Contributor Author

plafer commented Jul 12, 2024

Also added a few tests for MastNodeType serialization/deserialization.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Thank you! I left one non-blocking comment inline.

core/src/mast/serialization/info.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bitwalker bitwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@plafer plafer merged commit b433b57 into next Jul 17, 2024
9 checks passed
@plafer plafer deleted the plafer-mast-forest-serialization branch July 17, 2024 14:30
@plafer plafer restored the plafer-mast-forest-serialization branch July 17, 2024 14:31
@plafer plafer deleted the plafer-mast-forest-serialization branch July 17, 2024 14:32
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.

4 participants