Closed xrvdg closed 2 months ago
Opened a ticket for it on the cairo native repo: https://github.com/lambdaclass/cairo_native/issues/715
This has been fixed in https://github.com/lambdaclass/cairo_native/pull/720.
We need to update our keccak and secp when bumping our dependency on cairo native to a commit after https://github.com/lambdaclass/cairo_native/commit/9527cc9d17b4708b5fb969133f4af924636cee02.
Accessing the high part of a
U256
from within Rust gives the same result as accessing the low part ofu256
from within Cairo. This seems to point to the order of the struct getting mixed up. We currently workaround this in bothkeccak
andsecp
in the native starknet sycall handler.