-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: Fix barrett reduction bug #51
Conversation
Can you add a test to this repository which checks the behaviour of this? |
Oh good point. I'll use the RSA one. |
Hmmm... actually, using the RSA one would just bring most of the RSA lib into bignum. I don't know how to distill a test so complex into a smaller test with no dependencies. |
I'm writing a test now that only passes the output that was making the bug happen to a test directly |
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.
Thanks for this! Just a couple of nits.
Eventually we'll need detailed tests of each function, if we want this thing to pass an audit.
formatter check is ok on my box but fails on te CI |
Are you using nargo v0.36.0 to format? I think that's the version you need to use, to match the CI tests. |
* main: feat: remove generic parameter from the `BigNum` trait (#44) fix: fix broken tests in `runtime_bignum_test.nr` (#39) feat: remove a bunch of unnecessary bytecode from unconstrained ops (#50) fix: Fix barrett reduction bug (#51) feat: optimize brillig execution of `split_X_bits` functions (#47)
Resolves the test failing in noir_rsa. Thanks to Zac for spotting the bug.
cc @kashbrti