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.

26 lines
651 B

  1. const fs = require("fs");
  2. const miksi = require("../src/miksi.ts");
  3. export {};
  4. describe("deposit test", function () {
  5. this.timeout(200000);
  6. it("Test Deposit", async () => {
  7. const secret = "1234567890";
  8. const nullifier = "567891234";
  9. const commitments = [];
  10. const wasm = await fs.promises.readFile("./build/deposit.wasm");
  11. console.log("w", wasm.length);
  12. const witness = await miksi.calcDepositWitness(wasm, secret, nullifier, commitments);
  13. // console.log("w", witness);
  14. // const pk = await fs.promises.readFile("./build/deposit-proving_key.bin");
  15. // const proof = await miksi.calcProof(witness, pk);
  16. });
  17. });