Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a new hazmat feature and conditionally adds a pub re-export of the FieldElement type under a new hazmat module.

All of its inherent methods are still private, so this just exposes the trait impls backed by the soft implementation.

We will probably need to expose some things like InitToken and functions like polymul that accept it and select between intrinsics/soft implementations to enable performance-oriented usage of this type, which is why it's being placed in a hazmat module where we can potentially put some of the other things that would actually make it useful.

Adds a new `hazmat` feature and conditionally adds a `pub` re-export of
the `FieldElement` type under a new `hazmat` module.

All of its inherent methods are still private, so this just exposes the
trait impls backed by the `soft` implementation.

We will probably need to expose some things like `InitToken` and
functions like `polymul` that accept it and select between
intrinsics/soft implementations to enable performance-oriented usage of
this type, which is why it's being placed in a `hazmat` module where we
can potentially put some of the other things that would actually make it
useful.
@tarcieri tarcieri merged commit 8183db1 into master Jan 27, 2026
25 checks passed
@tarcieri tarcieri deleted the polyval/expose-fieldelement-under-hazmat branch January 27, 2026 19:25
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.

2 participants