-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What Resolves #1352 ### Why `Fr` is the 255-bit scalar with a fixed modulus (equal to the subgroup order `r`) and all its operations are modulo arithmetics. Exposing it as separate type (zero-sized wrapping of an `U256`) is better signaling that the two have different semantics and avoids potential footgun. ### Known limitations [TODO or N/A] --------- Co-authored-by: Leigh McCulloch <[email protected]>
- Loading branch information
1 parent
9e674f2
commit 3859428
Showing
2 changed files
with
181 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters