-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weierstrass: add
impl_field_element!
(#637)
Imports this macro from the `elliptic-curve` crate: https://docs.rs/elliptic-curve/0.12.3/elliptic_curve/macro.impl_field_element.html It's used for defining the boilerplate of a `FieldElement` type backed by a set of arithmetic ops, in a way that everything can be `const fn` (which wouldn't be possible with traits/generics until const impl lands on stable) Having the macro defined in this crate makes it easier to iterate, because changes can be made to all of the crates at the same time including `weierstrass` which provides the macro implementation, as opposed to it being in an out-of-repo crate like `elliptic-curve`.
- Loading branch information
Showing
5 changed files
with
447 additions
and
3 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
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
Oops, something went wrong.