Arrays working

This commit is contained in:
Jordi Baylina
2019-12-06 13:26:26 +01:00
parent 1e3d1235cb
commit fbcc753bc1
9 changed files with 290 additions and 145 deletions

View File

@@ -9,6 +9,10 @@ module.exports = class ZqField {
return a.add(b).mod(this.p);
}
mul(a, b) {
return a.mul(b).mod(this.p);
}
lt(a, b) {
return a.lt(b) ? bigInt(1) : bigInt(0);
}