-
Notifications
You must be signed in to change notification settings - Fork 226
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
fix(nargo): correct inconsistent file extension for ACIR hashes #994
fix(nargo): correct inconsistent file extension for ACIR hashes #994
Conversation
Idk which you prefer though
By "cached use case flow" I mean the user proving and verifying over a circuit that was compiled using `nargo compile <circuit_name>`
I'm merging both integration tests into one ( |
I think we can avoid doing that. Currently reviewing. |
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this @ilitteri, sorry this slipped through.
My main concern with the current PR is that we could get a minor combinatorial explosion of different paths through the compilation->proving->verification flow if we add more integration tests for cases like this, e.g. Proving and verifying can either automatically generate the ACIR from source or use a build artifact, verification may read a proof from a file or get passed it directly, etc.
If we run integration tests across all of test_data
for each potential path we'd end up making CI unnecessarily slow. I think it would be best to have a more focused test just to check that fetch_pk_and_vk
will always be able to recover the keys saved by save_and_preprocess_program
if you pass in the same circuit.
I like the idea of just checking EDIT: I got 1.5x doing this. I'll go for the unit test. |
@TomAFrench ready! Do you want me to file an issue for unit testing the other |
Now it also checks that the keys it returns are the ones that we saved Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Yeah we should roll these out to get more coverage on this submodule, I've added one here #995 Thanks again for this :) |
Sorry, that suggestion was semi-pseudocode. I'll fix up any issues and merge. |
@TomAFrench ready! Do you want me to file an issue for unit testing the other
Oh sorry, my bad. |
I have the fix ready to push, let me know if you're working on it too. |
I've got it ready but github won't let me push to the fork branch for some reason. Feel free to push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, LGTM.
Related issue(s)
Resolves #993
Description
Summary of changes
save_and_preprocess_program
public for the crate.json.sha256
->json.checksum
). For this point, I have a doubt about which you prefer and I think that it'd be nice to have a constant for this extension in order to avoid the same problem in the future.nargo compile <circuit_name>
.nargo prove <proof_name> <circuit_name>
.nargo verify <proof_name> <circuit_name>
.Dependency additions / changes
Test additions / changes
nargo compile <circuit_name>
.nargo prove <proof_name> <circuit_name>
.nargo verify <proof_name> <circuit_name>
.Checklist
cargo fmt
with default settings.Documentation needs
Additional context