-
Notifications
You must be signed in to change notification settings - Fork 283
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
Is there an implementation of modulo operation for field? #712
Comments
All elements are invertable in a field, so the remainer is always zero (or divide by zero error). "Reduce" means the remainder in integer division. It lives in https://github.com/arkworks-rs/algebra/blob/master/ff/src/fields/models/fp/montgomery_backend.rs. ark-poly has polynomial division. |
Agreed that an element of a field only coincidentally happens to be an integer (and that only for prime fields). The recommended way to do what you're looking for is via #717 |
Hi, I am currently working on a project involving the arkworks library and have a question regarding modulo operation on field elements.
Specifically, I am interested in calculating the result of taking a field element modulo an arbitrary number. I've searched through the documentation but couldn't find a direct implementation or information regarding this operation.
Could you kindly provide guidance on whether arkworks supports modulo operation on field elements, and if so, how I can perform such operations?
Thank you in advance for your time and assistance. I appreciate your efforts in developing and maintaining the arkworks library.
The text was updated successfully, but these errors were encountered: