elliptic-curves icon indicating copy to clipboard operation
elliptic-curves copied to clipboard

primeorder: have `impl_mont_field_element!` define inversions

Open tarcieri opened this issue 1 year ago • 0 comments

Right now every field implementation independently defines pub fn invert and fn invert_unchecked using the impl_bernstein_yang_invert! macro.

This is largely due to historical legacy: the impl_bernstein_yang_invert! macro was introduced later and never properly integrated into impl_mont_field_element!

In the next breaking release, primeorder should integrate these two macros so inversions are defined automatically.

tarcieri avatar Apr 11 '23 18:04 tarcieri