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

primefield: crate boilerplate #1013

Merged
merged 1 commit into from
Jan 11, 2024
Merged

primefield: crate boilerplate #1013

merged 1 commit into from
Jan 11, 2024

Conversation

tarcieri
Copy link
Member

Right now the primeorder crate, which contains elliptic curve addition formulas, is also curiously overloaded with some macros for generating field implementations, even though those have nothing in particular to do with the curve formulas.

This is largely because primeorder was an existing dependency of the other crates, so it was a convenient place to put it.

This begins the process of extracting it out into a separate crate. It should also make it easier to perform the fiat-crypto upgrade, since we can put the new implementation in primefield and leave the existing one in primeorder until all crates have been migrated.

Right now the `primeorder` crate, which contains elliptic curve addition
formulas, is also curiously overloaded with some macros for generating
field implementations, even though those have nothing in particular to
do with the curve formulas.

This is largely because `primeorder` was an existing dependency of the
other crates, so it was a convenient place to put it.

This begins the process of extracting it out into a separate crate. It
should also make it easier to perform the `fiat-crypto` upgrade, since
we can put the new implementation in `primefield` and leave the existing
one in `primeorder` until all crates have been migrated.
@tarcieri tarcieri merged commit 0f29241 into master Jan 11, 2024
130 checks passed
@tarcieri tarcieri deleted the primefield branch January 11, 2024 23:59
tarcieri added a commit that referenced this pull request Jan 12, 2024
This reverts commit 26be150.

Now that we've completed the `elliptic-curve` v0.14.0-pre upgrade, we
can restore the fiat-crypto upgrade.

This commit takes a slightly different approach and puts the macro
implementation for the newest version of `fiat-crypto` into the
new `primefield` crate which was added in #1013.

The goal will be to update all of the crates and then remove the old
macros from `primeorder` entirely.
tarcieri added a commit that referenced this pull request Jan 12, 2024
This reverts commit 26be150.

Now that we've completed the `elliptic-curve` v0.14.0-pre upgrade, we
can restore the fiat-crypto upgrade.

This commit takes a slightly different approach and puts the macro
implementation for the newest version of `fiat-crypto` into the
new `primefield` crate which was added in #1013.

The goal will be to update all of the crates and then remove the old
macros from `primeorder` entirely.
tarcieri added a commit that referenced this pull request Jan 12, 2024
This reverts commit 26be150.

Now that we've completed the `elliptic-curve` v0.14.0-pre upgrade, we
can restore the fiat-crypto upgrade.

This commit takes a slightly different approach and puts the macro
implementation for the newest version of `fiat-crypto` into the
new `primefield` crate which was added in #1013.

The goal will be to update all of the crates and then remove the old
macros from `primeorder` entirely.
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.

1 participant