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

Proof verification fails with a simple example #358

Closed
guipublic opened this issue Sep 30, 2022 · 1 comment
Closed

Proof verification fails with a simple example #358

guipublic opened this issue Sep 30, 2022 · 1 comment
Labels
backend Proving backends bug Something isn't working

Comments

@guipublic
Copy link
Contributor

Noir is not able to verify a proof for this program:

fn main(mut x: Field, y: Field) {
     let t = x+1;
    let r2= t*t;
    let r1 = y*t;
constrain r2*t == r1;
}

With the prover.toml:
x = "1"
y = "4"

n.b

  • it works if you use x=0 and t=x+2
  • the generated circuit and witnesses are correct
  • this one gate is failing verification: 1x1*x1 + 2x1 + -1x4 + 1 = 0,
@guipublic guipublic added bug Something isn't working backend Proving backends labels Sep 30, 2022
@kevaundray
Copy link
Contributor

Tracking issue: #1252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Proving backends bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants