This commit is contained in:
Jordi Baylina
2019-12-07 14:15:27 +01:00
parent 305bc7456f
commit 2a45647274
7 changed files with 199 additions and 12 deletions

View File

@@ -17,5 +17,25 @@ module.exports = class ZqField {
return a.lt(b) ? bigInt(1) : bigInt(0);
}
eq(a, b) {
return a.eq(b) ? bigInt(1) : bigInt(0);
}
gt(a, b) {
return a.gt(b) ? bigInt(1) : bigInt(0);
}
leq(a, b) {
return a.leq(b) ? bigInt(1) : bigInt(0);
}
geq(a, b) {
return a.geq(b) ? bigInt(1) : bigInt(0);
}
neq(a, b) {
return a.neq(b) ? bigInt(1) : bigInt(0);
}
};