-
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.
p521: make
LooseFieldElement
pub (#978)
The `FieldElement` type is available via the `FieldElement` associated type of the `primeorder::PrimeCurveArithmetic` trait, principally because it's the only way to make the generic implementation of curve arithmetic formulas work, however certain power users working on things like point encodings can also make use of it. This type also has a set of `*_loose` operations which return an unreduced `LooseFieldElement`, however these were previously marked `allow(dead_code)`. This commit makes those methods pub and marks `LooseFieldElement` as `pub` as well. It can't be directly named or imported, but perhaps someone can actually make use of the `*_loose` operations in 3rd party crates, since `p521` itself is not using them.
- Loading branch information
Showing
2 changed files
with
14 additions
and
17 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