You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: recursive_verification/CLAUDE.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,18 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
This is an Aztec-Noir project that demonstrates proof verification in Aztec contracts. It uses Aztec version 3.0.0-nightly.20251026 to verify Noir proofs within smart contracts on the Aztec network.
7
+
This is an Aztec-Noir project that demonstrates proof verification in Aztec contracts. It uses Aztec version 3.0.0-devnet.2 to verify Noir proofs within smart contracts on the Aztec network.
8
8
9
9
The project consists of:
10
+
10
11
- A Noir circuit (`hello_circuit`) that proves x ≠ y
11
12
- An Aztec smart contract (`ValueNotEqual`) that verifies the proof on-chain
12
13
- Scripts to generate proof data and deploy/interact with the contract
13
14
14
15
## Common Development Commands
15
16
16
17
### Environment Setup
18
+
17
19
```bash
18
20
# Install dependencies
19
21
bun install
@@ -26,6 +28,7 @@ aztec start --sandbox
26
28
```
27
29
28
30
### Circuit Development
31
+
29
32
```bash
30
33
# Compile the Noir circuit
31
34
cd circuit && aztec-nargo compile
@@ -38,6 +41,7 @@ cd circuit && nargo test
38
41
```
39
42
40
43
### Contract Development
44
+
41
45
```bash
42
46
# Compile contract, postprocess, and generate TypeScript bindings
43
47
bun ccc
@@ -55,11 +59,13 @@ bun recursion
55
59
## Architecture
56
60
57
61
### Circuit (`circuit/`)
62
+
58
63
-**`src/main.nr`**: Simple circuit that asserts two field values are not equal
59
64
-**`target/hello_circuit.json`**: Compiled circuit bytecode and ABI
60
65
- Uses UltraHonk proving system for proof generation
61
66
62
67
### Contract (`contract/`)
68
+
63
69
-**`src/main.nr`**: Aztec smart contract with:
64
70
-`initialize()`: Sets up counter with initial value for an owner
65
71
-`increment()`: Verifies a Noir proof and increments the counter
@@ -68,7 +74,9 @@ bun recursion
68
74
- Stores private counters using `EasyPrivateUint` from Aztec-nr libraries
69
75
70
76
### Scripts (`scripts/`)
77
+
71
78
-**`generate_data.ts`**:
79
+
72
80
- Executes the circuit with inputs (x=1, y=2)
73
81
- Generates UltraHonk proof using Barretenberg backend
74
82
- Serializes proof, verification key, and public inputs to `data.json`
@@ -80,17 +88,20 @@ bun recursion
80
88
- Verifies the proof on-chain and updates the counter
0 commit comments