You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
656 B

const fs = require("fs");
const miksi = require("../src/miksi.ts");
export {};
describe("deposit test", function () {
this.timeout(200000);
it("Test Deposit", async () => {
const nLevels = 4;
const secret = "1234567890";
const key = 1;
const commitments = [];
const wasm = await fs.promises.readFile("./test/build/deposit.wasm");
console.log("w", wasm.length);
const witness = await miksi.calcDepositWitness(wasm, nLevels, key, secret, commitments);
// console.log("w", witness);
// const pk = await fs.promises.readFile("./build/deposit-proving_key.bin");
// const proof = await miksi.calcProof(witness, pk);
});
});