fast mode

This commit is contained in:
Jordi Baylina
2019-06-16 00:27:42 +02:00
parent 859c98d2a4
commit 534efcf355
7 changed files with 69 additions and 62 deletions

View File

@@ -41,7 +41,7 @@ describe("Sum test", () => {
const witness = circuit.calculateWitness({ "i": 111});
assert(witness[0].equals(bigInt(1)));
assert(witness[1].equals(bigInt(111)));
assert(witness[1].equals(bigInt(111*111)));
assert(witness[2].equals(bigInt(111)));
});
// it("Should assign signal ERROR", async () => {

View File

@@ -8,7 +8,7 @@ template X() {
}
i === r;
out <== r;
out <== i*i;
}
component main = X();