All operators finished

This commit is contained in:
Jordi Baylina
2019-12-08 16:20:15 +01:00
parent 1f94f7f3ec
commit afa8201c2c
8 changed files with 181 additions and 75 deletions

View File

@@ -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);
}