elliptic-curves
elliptic-curves copied to clipboard
primeorder: have `impl_mont_field_element!` define inversions
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.