-
Notifications
You must be signed in to change notification settings - Fork 302
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
bug: felt_to_bytes_little is underconstrained #1300
Comments
POCChange the hint from
FixAs the input value can be I see 2 solutions:
The first one might be more expensive due to the necessary range check implicit param + uint256 manipulation hence we might go with the second one. |
A third solution was suggested by Zellic by adding 2 constraints:
The second part can be calculated thank to split_felt(value) and use bytes_used_128 accordingly on this representation. |
* feat: statically-fetched-env * fix: statically-fetched-env
Bug Report
Kakarot version
The individual
[output]``s are not constrained to be modulo
base`.kakarot/src/utils/bytes.cairo
Line 62 in a41fe3b
The text was updated successfully, but these errors were encountered: