Skip to content

Conversation

@ElijahVlasov
Copy link
Collaborator

We add a new constructor new_with_cfg to PrimeField trait whose intent is to take an arbitrary inner integer as its argument and turn it into the Montgomery representation.

We also add an analogous constructor new to ConstPrimeField trait.

On top of that, some missing but handy const methods are added to MontyField.

We add a new constructor `new_with_cfg` to `PrimeField` trait
whose intent is to take an arbitrary inner integer as its
argument and turn it into the Montgomery representation.

We also add an analogous constructor `new` to `ConstPrimeField` trait.

On top of that, some missing but handy const methods are added to
`MontyField`.
@github-actions
Copy link

github-actions bot commented Nov 19, 2025

Coverage (base → head): 52.14% → 51.88% ⬇️ 0.26 pp
Only posts when PR coverage is lower than the base branch's latest push (or freshly computed base).

@ElijahVlasov ElijahVlasov merged commit c1498e0 into main Nov 20, 2025
9 checks passed
@ElijahVlasov ElijahVlasov deleted the ElijahVlasov/field-constructor branch November 20, 2025 12:02
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