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

Extend snarkjs testing #6

Merged
merged 13 commits into from
Feb 25, 2024
Merged

Extend snarkjs testing #6

merged 13 commits into from
Feb 25, 2024

Conversation

katiemckeon
Copy link
Contributor

This PR adds a test invoking all of the commands in snarkjs --help.

The new files in snark_js/circom_files were generated by Circom v2.1.5 (not the latest release, but close enough). I have considered the possibility that Circom & Snarkjs undergo an update, introducing errors in the test script from our outdated serializations in circom_files/. Informally, I'd estimate the likelihood is low. I've never encountered or heard about snarkjs breaking changes. There are enough Circom circuits in production use cases out there, I suspect they develop around backwards compatibility

Since the test script generates so many intermediate files - I created /tmp/snarkjs at the beginning of the script and remove it at the end. There are plenty of subdirectories added to this folder, but I never bother to delete them. I let the recursive flag handle all that at the end. Just pointing this out in case there is a reason not to do that (if test.sh ends early, many intermediate files are left).

@sangaline sangaline merged commit 51f7bbc into main Feb 25, 2024
4 checks passed
@sangaline sangaline deleted the klm-snarkjs-testing branch February 25, 2024 18:40
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

Successfully merging this pull request may close these issues.

2 participants