Skip to content

Commit a96d64d

Browse files
chore: Add links to complete NoirJS app code to the guide (#3359)
Co-authored-by: Tom French <[email protected]>
1 parent c3c169e commit a96d64d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/docs/noir_js/getting_started/01_tiny_noir_app.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ keywords: [how to, guide, javascript, typescript, noir, barretenberg, zero-knowl
66

77
NoirJS works both on the browser and on the server, and works for both ESM and CJS module systems. In this page, we will learn how can we write a simple test and a simple web app to verify the standard Noir example.
88

9+
You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app).
10+
911
## Before we start
1012

1113
:::note
@@ -45,7 +47,7 @@ Go back to the previous folder and start a new project by running run `npm init`
4547
We'll need two `npm` packages. These packages will provide us the methods we need to run and verify proofs:
4648

4749
```bash
48-
npm i @noir-lang/backend_barretenberg@^0.17.0 @noir-lang/noir_js@^0.17.0
50+
npm i @noir-lang/backend_barretenberg@^0.17.0 @noir-lang/noir_js@^0.17.0
4951
```
5052

5153
To serve our page, we can use a build tool such as `vite`. Because we're gonna use some `wasm` files, we need to install a plugin as well. Run:
@@ -249,6 +251,8 @@ if (verification) display('logs', 'Verifying proof... ✅');
249251

250252
By saving, your app will refresh and here's our complete Tiny Noir App!
251253

254+
You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app).
255+
252256
## Further Reading
253257

254258
You can see how noirjs is used in a full stack Next.js hardhat application in the [noir-starter repo here](https://github.com/noir-lang/noir-starter/tree/main/next-hardhat). The example shows how to calculate a proof in the browser and verify it with a deployed Solidity verifier contract from noirjs.

docs/docs/standard_library/cryptographic_primitives/03_ecdsa_sig_verification.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn about the cryptographic primitives regarding ECDSA over the s
44
keywords: [cryptographic primitives, Noir project, ecdsa, secp256k1, secp256r1, signatures]
55
---
66

7-
import BlackBoxInfo from '../../../src/components/Notes/_blackbox.mdx';
7+
import BlackBoxInfo from '@site/src/components/Notes/_blackbox.mdx';
88

99
Noir supports ECDSA signatures verification over the secp256k1 and secp256r1 curves.
1010

0 commit comments

Comments
 (0)