Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a trait for abstracting over various sized BernsteinYangInverter (and prospectively a BoxedBernsteinYangInverter) types, which also opens the door to impl'ing PrecomputeInverter for *ResidueParams, where the inverter would accept a *Residue as input/output and invert in Montgomery form.

The PrecomputeInverter::Inverter type is now bounded on the new Inverter trait, making it useful in generic code.

Adds a trait for abstracting over various sized `BernsteinYangInverter`
(and prospectively a `BoxedBernsteinYangInverter`) types, which also
opens the door to impl'ing `PrecomputeInverter` for `*ResidueParams`,
where the inverter would accept a `*Residue` as input/output and invert
in Montgomery form.

The `PrecomputeInverter::Inverter` type is now bounded on the new
`Inverter` trait, making it useful in generic code.
@tarcieri tarcieri merged commit 6e1fe9f into master Dec 16, 2023
@tarcieri tarcieri deleted the more-inverter-traits branch December 16, 2023 20:19
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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