Skip to content

Commit 810445a

Browse files
Fixes: bump to devnet.4; move to HONK_ZK
1 parent c228c0c commit 810445a

File tree

13 files changed

+221
-216
lines changed

13 files changed

+221
-216
lines changed

.github/workflows/recursive-verification-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
AZTEC_ENV: sandbox
21-
AZTEC_VERSION: 3.0.0-devnet.2
21+
AZTEC_VERSION: 3.0.0-devnet.4
2222

2323
steps:
2424
- name: Checkout repository

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ aztec-examples/
5252
bash -i <(curl -s https://install.aztec.network)
5353

5454
# Set specific version (examples may require different versions)
55-
aztec-up 3.0.0-devnet.2 # For recursive_verification
55+
aztec-up 3.0.0-devnet.4 # For recursive_verification
5656
aztec-up 2.0.2 # For starter-token
5757
```
5858

@@ -245,7 +245,7 @@ easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/",
245245

246246
**Version Compatibility**: Different examples may use different Aztec versions:
247247

248-
- `recursive_verification`: v3.0.0-devnet.2
248+
- `recursive_verification`: v3.0.0-devnet.4
249249

250250
### JavaScript/TypeScript Dependencies
251251

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can find additional examples in the Aztec monorepo [docs examples folder](ht
1616

1717
### 1. [Recursive Verification](./recursive_verification)
1818

19-
**Aztec Version**: 3.0.0-devnet.2
19+
**Aztec Version**: 3.0.0-devnet.4
2020

2121
Demonstrates how to verify Noir circuit proofs within Aztec smart contracts using the UltraHonk proving system. This example showcases:
2222

@@ -43,7 +43,7 @@ Demonstrates how to verify Noir circuit proofs within Aztec smart contracts usin
4343
bash -i <(curl -s https://install.aztec.network)
4444

4545
# Set specific Aztec version (if needed)
46-
aztec-up 3.0.0-devnet.2
46+
aztec-up 3.0.0-devnet.4
4747
```
4848

4949
### Run the Examples

recursive_verification/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project Overview
66

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.
7+
This is an Aztec-Noir project that demonstrates proof verification in Aztec contracts. It uses Aztec version 3.0.0-devnet.4 to verify Noir proofs within smart contracts on the Aztec network.
88

99
The project consists of:
1010

recursive_verification/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ This project implements:
1111
- **Proof Generation**: Scripts to generate UltraHonk proofs using Barretenberg
1212
- **On-chain Verification**: Deployment and interaction scripts for proof verification on Aztec
1313

14-
**Aztec Version**: `3.0.0-devnet.2`
14+
**Aztec Version**: `3.0.0-devnet.4`
1515

1616
## Prerequisites
1717

1818
- [Bun](https://bun.sh/) runtime (v1.0 or higher)
19-
- [Aztec CLI](https://docs.aztec.network/getting_started/quickstart) (version 3.0.0-devnet.2)
19+
- [Aztec CLI](https://docs.aztec.network/getting_started/quickstart) (version 3.0.0-devnet.4)
2020
- Linux/macOS (Windows users can use WSL2)
2121
- 8GB+ RAM recommended for proof generation
2222

@@ -61,7 +61,7 @@ bash -i <(curl -s https://install.aztec.network)
6161
### Set Aztec to the correct version:
6262

6363
```bash
64-
aztec-up 3.0.0-devnet.2
64+
aztec-up 3.0.0-devnet.4
6565
```
6666

6767
This ensures compatibility with the contract dependencies.
@@ -153,7 +153,7 @@ For a fresh setup, run these commands in order:
153153
bun install
154154

155155
# 2. Setup Aztec
156-
aztec-up 3.0.0-devnet.2
156+
aztec-up 3.0.0-devnet.4
157157

158158
# 3. Compile circuit
159159
cd circuit && aztec-nargo compile && cd ..

recursive_verification/bun.lockb

0 Bytes
Binary file not shown.

recursive_verification/contract/Nargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ type = "contract"
44
authors = ["Satyam Bansal"]
55

66
[dependencies]
7-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.2", directory = "noir-projects/aztec-nr/aztec" }
8-
value_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.2", directory = "noir-projects/aztec-nr/value-note" }
9-
easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.2", directory = "noir-projects/aztec-nr/easy-private-state" }
7+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.4", directory = "noir-projects/aztec-nr/aztec" }
8+
value_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.4", directory = "noir-projects/aztec-nr/value-note" }
9+
easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v3.0.0-devnet.4", directory = "noir-projects/aztec-nr/easy-private-state" }

recursive_verification/contract/src/main.nr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use aztec::macros::aztec;
33
#[aztec]
44
pub contract ValueNotEqual {
55
global HONK_VK_SIZE: u32 = 115;
6-
global HONK_PROOF_SIZE: u32 = 457;
7-
global HONK_IDENTIFIER: u32 = 1;
6+
global HONK_PROOF_SIZE: u32 = 492 + 16;
7+
global HONK_IDENTIFIER: u32 = 7;
88

99
use aztec::{
1010
macros::{functions::{external, initializer}, storage::storage},
@@ -32,9 +32,10 @@ pub contract ValueNotEqual {
3232
verification_key: [Field; HONK_VK_SIZE],
3333
proof: [Field; HONK_PROOF_SIZE],
3434
public_inputs: [Field; 1],
35+
vk_hash: Field
3536
) {
3637
debug_log_format("Incrementing counter for owner {0}", [owner.to_field()]);
37-
std::verify_proof_with_type(verification_key, proof, public_inputs, 0x0, HONK_IDENTIFIER);
38+
std::verify_proof_with_type(verification_key, proof, public_inputs, vk_hash, HONK_IDENTIFIER);
3839
ValueNotEqual::at(context.this_address()).emit_in_public(12345).enqueue(&mut context);
3940
let counters = storage.counters;
4041
counters.at(owner).add(1, owner);

0 commit comments

Comments
 (0)