Add Felt division (modular multiplicative inverse) based on the binary exponentiation.
Identified a bug in the test case "should deduce op1 for assert eq res logic add", using the oplogic "op0 * op1" instead of "op0 + op1". It confirms that string types are not suitable to perform this logic and should rather use enum/const objects, which will be addressed in another PR.
Haven't spotted this bug before, as div was an integer division 3n - 2n == 1n and 3n / 2n == 1n, test succeeding in both cases
Solves #49
Add Felt division (modular multiplicative inverse) based on the binary exponentiation.
Identified a bug in the test case "should deduce op1 for assert eq res logic add", using the oplogic "op0 * op1" instead of "op0 + op1". It confirms that string types are not suitable to perform this logic and should rather use enum/const objects, which will be addressed in another PR.
Haven't spotted this bug before, as
div
was an integer division3n - 2n == 1n
and3n / 2n == 1n
, test succeeding in both cases