mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
All operators finished
This commit is contained in:
@@ -58,6 +58,7 @@ module.exports = class ZqField {
|
||||
}
|
||||
|
||||
div(a, b) {
|
||||
assert(!b.isZero(), "Division by zero");
|
||||
return a.mul(b.modInv(this.p)).mod(this.p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user