From ebcfc36baad0b026ca13839fa7b528be8604d7d7 Mon Sep 17 00:00:00 2001 From: Josh Crites Date: Mon, 30 Oct 2023 10:41:06 -0400 Subject: [PATCH 1/5] add links --- docs/docs/noir_js/getting_started/01_tiny_noir_app.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md index 1b0c8bfc353..a1c59a0a6e9 100644 --- a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md +++ b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md @@ -6,6 +6,8 @@ keywords: [how to, guide, javascript, typescript, noir, barretenberg, zero-knowl 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. +You can find the complete app code for this guide [here](https://github.com/AztecProtocol/dev-rel/tree/main/tutorials/noirjs_guide). + ## Before we start :::note @@ -45,7 +47,7 @@ Go back to the previous folder and start a new project by running run `npm init` We'll need two `npm` packages. These packages will provide us the methods we need to run and verify proofs: ```bash -npm i @noir-lang/backend_barretenberg@^0.17.0 @noir-lang/noir_js@^0.17.0 +npm i @noir-lang/backend_barretenberg@^0.17.0 @noir-lang/noir_js@^0.17.0 ``` 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... ✅'); By saving, your app will refresh and here's our complete Tiny Noir App! +You can find the complete app code for this guide [here](https://github.com/AztecProtocol/dev-rel/tree/main/tutorials/noirjs_guide). + ## Further Reading 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. From 3d62f03247764977b17092a4e2d276d1a42cd74f Mon Sep 17 00:00:00 2001 From: Josh Crites Date: Mon, 30 Oct 2023 10:41:27 -0400 Subject: [PATCH 2/5] add missed relative link update --- .../cryptographic_primitives/03_ecdsa_sig_verification.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/standard_library/cryptographic_primitives/03_ecdsa_sig_verification.mdx b/docs/docs/standard_library/cryptographic_primitives/03_ecdsa_sig_verification.mdx index 25185b062f7..72bce984821 100644 --- a/docs/docs/standard_library/cryptographic_primitives/03_ecdsa_sig_verification.mdx +++ b/docs/docs/standard_library/cryptographic_primitives/03_ecdsa_sig_verification.mdx @@ -4,7 +4,7 @@ description: Learn about the cryptographic primitives regarding ECDSA over the s keywords: [cryptographic primitives, Noir project, ecdsa, secp256k1, secp256r1, signatures] --- -import BlackBoxInfo from '../../../src/components/Notes/_blackbox.mdx'; +import BlackBoxInfo from '@site/src/components/Notes/_blackbox.mdx'; Noir supports ECDSA signatures verification over the secp256k1 and secp256r1 curves. From 3d0faac963f6682fca10954d1847929c79dd41e6 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 30 Oct 2023 11:01:16 -0400 Subject: [PATCH 3/5] Update 01_tiny_noir_app.md --- docs/docs/noir_js/getting_started/01_tiny_noir_app.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md index a1c59a0a6e9..4a1aaeaad38 100644 --- a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md +++ b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md @@ -6,7 +6,7 @@ keywords: [how to, guide, javascript, typescript, noir, barretenberg, zero-knowl 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. -You can find the complete app code for this guide [here](https://github.com/AztecProtocol/dev-rel/tree/main/tutorials/noirjs_guide). +You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app/tree/master). ## Before we start @@ -251,7 +251,7 @@ if (verification) display('logs', 'Verifying proof... ✅'); By saving, your app will refresh and here's our complete Tiny Noir App! -You can find the complete app code for this guide [here](https://github.com/AztecProtocol/dev-rel/tree/main/tutorials/noirjs_guide). +You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app/tree/master). ## Further Reading From e004978a3112369f531f04e8635be96e54f08527 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 30 Oct 2023 11:09:29 -0400 Subject: [PATCH 4/5] Update docs/docs/noir_js/getting_started/01_tiny_noir_app.md Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> --- docs/docs/noir_js/getting_started/01_tiny_noir_app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md index 4a1aaeaad38..357414a3d07 100644 --- a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md +++ b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md @@ -6,7 +6,7 @@ keywords: [how to, guide, javascript, typescript, noir, barretenberg, zero-knowl 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. -You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app/tree/master). +You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app). ## Before we start From 5a8a03e4b048b890f0e11b6d84514af86447fd96 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 30 Oct 2023 11:09:35 -0400 Subject: [PATCH 5/5] Update docs/docs/noir_js/getting_started/01_tiny_noir_app.md Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> --- docs/docs/noir_js/getting_started/01_tiny_noir_app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md index 357414a3d07..82d18ab5cad 100644 --- a/docs/docs/noir_js/getting_started/01_tiny_noir_app.md +++ b/docs/docs/noir_js/getting_started/01_tiny_noir_app.md @@ -251,7 +251,7 @@ if (verification) display('logs', 'Verifying proof... ✅'); By saving, your app will refresh and here's our complete Tiny Noir App! -You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app/tree/master). +You can find the complete app code for this guide [here](https://github.com/noir-lang/tiny-noirjs-app). ## Further Reading