-
Notifications
You must be signed in to change notification settings - Fork 244
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
Update NoirJS tutorial in docs #4793
Comments
On second read of the https://noir-lang.org/docs/tutorials/noirjs_app page: @signorecello should engineers update it without updating the example, or should we count on @noir-lang/developerrelations to update both in one go? |
Summary of expected docs for new verifier class (could be added to the end of the existing Change the import { BarretenbergVerifierBackend } from '@noir-lang/backend_barretenberg'; and the setup line: // try {
const backend = new BarretenbergVerifierBackend(circuit); and then skip proving: const proof = await noir.generateProof(input); |
backend_barretenburg
into prover and verifier classes
Also Adapted from the E2E test in #4769: // Import
import { BarretenbergVerifier as Verifier } from '@noir-lang/backend_barretenberg';
// Generate vkey
const verificationKey = await backend.getVerificationKey();
// Verify proof
const verifier = new Verifier();
const isValid = await verifier.verifyProof(proof, verificationKey); |
# Description ## Problem\* Resolves #4793 ## Summary\* This pull requests updates the docs to support changes made after version v0.25.0. The current docs directs the user to install packages of version 0.19.7 while calling functions `generateProof` and `verifyProof` instead of `generateFinalProof` and `verifyFinalProof` which results in the error that functions `generateProof` and `verifyProof` don't exist. Also, for the dev version of the docs, using the packages v0.27.0@nightly, the functions needed to be updated to reflect the changes in #4769. ## Additional Context I've tested the changes using packages and nargo of the following versions: - v0.25.0 - v0.26.0 - v0.27.0@nightly I added documentation for the `vite.config.js` file otherwise any version >= v0.21.0 would result in runtime errors. ## 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.
Prerequisites
Update the https://noir-lang.org/docs/tutorials/noirjs_app doc page per the changes in #4769.
The text was updated successfully, but these errors were encountered: