add inverse doc

This commit is contained in:
Dmitry Vagner 2023-02-25 18:07:10 -08:00
parent 13a8d670d0
commit 1d94756e1a

View File

@ -6,7 +6,10 @@
MULFP254
%endmacro
// Non-deterministically provide the inverse modulo N.
// Non-deterministically provide the inverse x^-1 of x modulo N.
// If x === 0 mod N, this function panics.
// Although the official prover provides the unique inverse <N
// this macro only checks that x * x^-1 === 0 mod N
%macro inv_fp254
// stack: x
PROVER_INPUT(ff::bn254_base::inverse)