-
Notifications
You must be signed in to change notification settings - Fork 156
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: degree for min max #1800
Fix: degree for min max #1800
Conversation
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Tuditi.
|
2 similar comments
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Tuditi.
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Tuditi.
|
While the fix to set the degree is correct and should be kept, you are not using the correct test This makes you believe the function is incorrect but it is. Also you should use the |
ff15728
to
35d74b4
Compare
13cd230
to
d640dce
Compare
Here also you have to do a |
d640dce
to
a12fc53
Compare
Done :) |
PR content/description
Contains a test to recreate an issue we have been having at Belfort. The min - max functions seem to fail at the assertion that the carries are empty. IIUC, this is due to the fact that
unchecked_add
will add together the degrees, but we know that either the LHS or the RHS will be set to 0 after performing the LUT here.It can be solved in the following ways:
Degree::new(msg_modulus - 1)
.% message_modulus
).Check-list: