Update to 17 (16) MerkleTree levels

This commit is contained in:
arnaucube
2020-05-18 23:08:06 +02:00
parent da7cac076e
commit 4648850e0c
10 changed files with 32 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ describe("deposit test", function () {
{reduceConstraints: false}
);
const nLevels = 5;
const nLevels = 17;
const secret = "1234567890";
const coinCode = "0";

View File

@@ -17,7 +17,7 @@ describe("withdraw test", function () {
{reduceConstraints: false}
);
const nLevels = 5;
const nLevels = 17;
const secret = "1234567890";
const coinCode = "0";

View File

@@ -16,7 +16,7 @@ const smt = require("circomlib").smt;
let insVerifier;
let insMiksi;
const nLevels = 5;
const nLevels = 17;
const secret = ["1234567890", "987654321", "123"];
const coinCode = "0"; // refearing to ETH
@@ -105,6 +105,7 @@ contract("miksi", (accounts) => {
});
it("Calculate witness and generate the zkProof", async () => {
this.timeout(10000000);
await genZKProof(0, addr2, "1");
await genZKProof(1, addr4, "2");
await genZKProof(2, addr4, "3");