-
Notifications
You must be signed in to change notification settings - Fork 248
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
Nargo fails to verify the proof (repro attached) #4443
Comments
I can reproduce this on master |
@LogvinovLeon Would you be able to link the repo in the issue so we don't have to go searching for it? |
It is linked in the repro steps, but here is the link one more time: [email protected]:vlayer-xyz/nargo-verify-repro.git |
Here is it's contents inline:
|
Is there any workaround around this? This is making it impossible for us to enable all assertions we want on our system and therefore - the proofs we're generating do not satisfy soundness. So for us - we can't fix our critical security vulnerability before this is fixed. (although we're not live yet). Also - the optics on this are pretty bad as it's not an issue in noir-js or solidity but core nargo. |
I have been able to reproduce this with an even smaller example:
The next step for me is to reproduce it within a Barretenberg test case, which I have not been able to do yet. |
@guipublic The basic reproduction looks like we are returning the same input witness as output, so I tried adding a
This successfully proves and verifies for me. Adding This |
# Description ## Problem\* Resolves #4914 Resolves #4443 ## Summary\* We're starting to need various workarounds for non-distinct witnesses to the point where it's more of a hindrance than it's worth. This PR makes the `distinct` behaviour the default and raises a parser error when using the `distinct` keyword. I've gone for a hard error rather than a warning as the only place where `distinct` can be used is on `main` and so there's no risk of breaking libraries. Affected users can simply modify their own binary project to fix the issue. ## Additional Context ## Documentation\* Check one: - [ ] No documentation needed. - [x] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
Aim
I would like to be able to generate a proof and then verify it
Expected Behavior
Nargo verify succeeds after
Bug
Nargo verfiy fails
To Reproduce
noirup --version 0.24.0
git clone [email protected]:vlayer-xyz/nargo-verify-repro.git
cd nargo-verify-repro
nargo prove
nargo verify
- FailsProject Impact
Blocker
Impact Context
It's a blocker because nargo generates proofs that are invalid.
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
Binary (
noirup
default)Nargo Version
noirc version = 0.24.0+df04ce9d72581416665e7e420d188d61d6cdc529
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: