Pedersen2 and BitPoints MulFix and MulAny

This commit is contained in:
Jordi Baylina
2018-11-27 16:03:57 +01:00
parent fcc61f9237
commit 55e9a60c37
40 changed files with 2272 additions and 80 deletions

View File

@@ -88,7 +88,7 @@ describe("Double Pedersen test", function() {
it("Should pedersen all ones", async () => {
let w, xout, yout;
const allOnes = bigInt("1").shl(251).sub(bigInt("1"));
const allOnes = bigInt("1").shl(250).sub(bigInt("1"));
w = circuit.calculateWitness({ in: [allOnes, allOnes]});
xout = w[circuit.getSignalIdx("main.out[0]")];