Skip to content
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

expose Fr into its own type #1373

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Oct 22, 2024

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]

@leighmcculloch
Copy link
Member

Builds will pass after the following PR is merged:

@leighmcculloch leighmcculloch added this pull request to the merge queue Oct 23, 2024
Merged via the queue into stellar:main with commit 3859428 Oct 23, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider add Fr type to sdk
2 participants