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

Proving key not initialized in NoirJS init #3319

Closed
signorecello opened this issue Oct 27, 2023 · 0 comments · Fixed by #3322
Closed

Proving key not initialized in NoirJS init #3319

signorecello opened this issue Oct 27, 2023 · 0 comments · Fixed by #3322
Labels
bug Something isn't working

Comments

@signorecello
Copy link
Contributor

Aim

I want to create a backend_barretenberg instance that only verifies, doesn't prove. Example code:

const backends = {
  alice: new BarretenbergBackend(main, {threads: 8}),
  bob: new BarretenbergBackend(main, {threads: 8})
}
const noirs = {
  alice: new Noir(main, backends.alice),
  bob: new Noir(main, backends.bob)
}
async function program() {
  const input = {x : 1, y: 2}
  const proof = await noirs.alice.generateFinalProof(input)
  await noirs.alice.verifyFinalProof(proof)
}

Expected Behavior

I expect the proof to verify

Bug

It doesn't verify, and the reason is because the proving key is not initialized on Bob's backend instance.

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

Yes

Support Needs

No response

@signorecello signorecello added the bug Something isn't working label Oct 27, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Oct 27, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant