-
Notifications
You must be signed in to change notification settings - Fork 718
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
Add ZK opcodes definition #619
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Aaryamann Challani <[email protected]>
@rymnc thank you for pointing incoherences :) |
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.
LGTM, small nit
Co-authored-by: Aaryamann Challani <[email protected]>
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.
Panic conditions must be described as well. The operations panic at least in cases where mode-selection arguments are not from the list of available modes. Also outputs to memory require that memory to be writeable. Likely there are also cases where the argument values etc. can also be incorrect, in which case the operation should fail. Consider allowing the use of $err
in those cases.
Co-authored-by: Hannes Karppila <[email protected]>
@Dentosal I have added panic cases. However, I don't make use of |
Not only for ALU, see The use case here would be doing operations on user-provided, possibly invalid EC points without panicing (e.g. |
I don't think it's expected and I don't see any logic of modifying the input to retry directly designed in code. Also if the point isn't corrected created in the VM implementation then the addition can't be tried and the code will be more difficult and I think users whould except a panic and this will help them debugging with an explicit reason. |
Co-authored-by: Rafał Chabowski <[email protected]>
#615
VM PR : FuelLabs/fuel-vm#870
Before requesting review
After merging, notify other teams
[Add or remove entries as needed]