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

Zero all malleable fields before execution #545

Merged
merged 6 commits into from
Feb 22, 2024

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Feb 13, 2024

Closes #542.

Also changes tx.receiptsRoot to only be updated after the tx has terminated, as the intermediate values are no longer useful. The speeds up and simplifies implementation of receipt-pushing opcodes.

@xgreenx
Copy link
Contributor

xgreenx commented Feb 13, 2024

Maybe it makes sense to remove the getter for malleable fields since they are zero all the time. We don't need to change the discriminant for values, we can leave gaps

@xgreenx
Copy link
Contributor

xgreenx commented Feb 13, 2024

Before merging this PR, I would suggest doing FuelLabs/fuel-core#1620 first. It will help identify all problematic fields. Maybe we missed something here

@Dentosal
Copy link
Member Author

CI not passing due to #547

Voxelot
Voxelot previously approved these changes Feb 21, 2024
@Voxelot
Copy link
Member

Voxelot commented Feb 21, 2024

For future reference, removing the intermediate receipt roots is possible now that we are going with a zk-hybrid proving approach.

xgreenx pushed a commit that referenced this pull request Feb 21, 2024
@Dentosal Dentosal merged commit 2742f30 into master Feb 22, 2024
6 checks passed
@Dentosal Dentosal deleted the dento/zero-malleable-before-exec branch February 22, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:FVM Component: FuelVM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zero all malleable fields before execution
3 participants