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
Field.assertBoolean
The comments of Field.assertBoolean are as follows:
Assert that this [[Field]] is either 0 or 1
Assert that this [[
]] is either 0 or 1
However, it seems as though calling assertBoolean on Field elements that are not 0 or 1 does not cause an assertion failure.
assertBoolean
import { Field, isReady, shutdown } from 'snarkyjs'; await isReady; Circuit.runAndCheck(() => { Field(512).assertBoolean(); // Nothing is thrown. }); shutdown();
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
The comments of
Field.assertBoolean
are as follows:Assert that this [[
Field]] is either 0 or 1
However, it seems as though calling
assertBoolean
on Field elements that are not 0 or 1 does not cause an assertion failure.Reproduce
Code
The text was updated successfully, but these errors were encountered: