Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS test error #28

Closed
priyochatterjee08 opened this issue Aug 4, 2024 · 1 comment
Closed

JS test error #28

priyochatterjee08 opened this issue Aug 4, 2024 · 1 comment

Comments

@priyochatterjee08
Copy link

I am getting following errors in running js tests. Please help me resolve the issues.

  1. main circuit tests for Zeto fungible tokens with anonymity without encryption
    should fail to generate a witness because mass conservation is not obeyed:
    AssertionError: expected Error: Error: Assert Failed.
    Error in tem… to match /Error in template CheckHashesAndSum_89 line: 95/
    at Context. (test/anon.js:132:20)
  2. main circuit tests for Zeto fungible tokens with anonymity without encryption
    should generate a valid proof that can be verified successfully:
    Error: Invalid witness length. Circuit: 5205, witness: 2061
    at Object.groth16Prove [as prove] (node_modules/snarkjs/build/main.cjs:900:15)
    at async Context. (test/anon.js:169:38)
  3. main circuit tests for Zeto fungible tokens with anonymity with encryption
    should fail to generate a witness because mass conservation is not obeyed:
    AssertionError: expected Error: Error: Assert Failed.
    Error in tem… to match /Error in template CheckHashesAndSum_89 line: 95/
    at Context. (test/anon_enc.js:145:20)
  4. main circuit tests for Zeto fungible tokens with encryption and anonymity using nullifiers
    should fail to generate a witness because mass conservation is not obeyed:
    AssertionError: expected Error: Error: Assert Failed.
    Error in tem… to match /Error in template CheckNullifierHashesAndSum_246 line: 156/
    at Context. (test/anon_enc_nullifier.js:271:20)
  5. main circuit tests for Zeto fungible tokens with anonymity using nullifiers and without encryption
    should fail to generate a witness because mass conservation is not obeyed:
    AssertionError: expected Error: Error: Assert Failed.
    Error in tem… to match /Error in template CheckNullifierHashesAndSum_246 line: 156/
    at Context. (test/anon_nullifier.js:225:20)
  6. check-nullifiers circuit tests
    should fail to generate a witness because incorrect values are not used:
    AssertionError: expected Error: Error: Assert Failed.
    Error in tem… to match /Error in template CheckNullifiers_155 line: 63/
    at Context. (test/check_nullifiers.js:119:20)
@Chengxuan
Copy link
Contributor

fixed as part of #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants