We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
as_u32
We currently use as_u32 to coerce a field element into a u32 by taking its value modulo 2^32.
See:
noir/crates/noirc_evaluator/src/ssa/mem.rs
Line 97 in b8c582f
We should document whether this is safe to do, and or whether we should actually be enforcing that its value is reduced beforehand.
The text was updated successfully, but these errors were encountered:
guipublic
No branches or pull requests
Problem
We currently use
as_u32
to coerce a field element into a u32 by taking its value modulo 2^32.See:
noir/crates/noirc_evaluator/src/ssa/mem.rs
Line 97 in b8c582f
Solution
We should document whether this is safe to do, and or whether we should actually be enforcing that its value is reduced beforehand.
Alternatives considered
Additional context
The text was updated successfully, but these errors were encountered: