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

Use inherent constants for ZERO, ONE, and MINUS_ONE #470

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

tarcieri
Copy link
Contributor

For the field element types FieldElement and Scalar, use inherent constants instead of (non-const) functions to return these constant values.

It's likely the original functions predate support for inherent constants, but now that they're available, they're a better fit for these sort of constant values.

For the field element types `FieldElement` and `Scalar`, use inherent
constants instead of (non-const) functions to return these constant
values.

It's likely the original functions predate support for inherent
constants, but now that they're available, they're a better fit for
these sort of constant values.
Copy link
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-hoc utACK

@str4d
Copy link
Contributor

str4d commented Dec 12, 2022

The change should be document in the changelog though.

@rozbb
Copy link
Contributor

rozbb commented Dec 12, 2022

Was updated in f38d677

@rozbb rozbb mentioned this pull request Dec 12, 2022
@pinkforest pinkforest mentioned this pull request Dec 13, 2022
5 tasks
@tarcieri tarcieri deleted the inherent-constants branch May 31, 2023 02:13
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.

3 participants