Skip to content

Conversation

sklppy88
Copy link
Collaborator

@sklppy88 sklppy88 commented Sep 22, 2025

Workflow

  1. aztec start --sandbox
  2. run scripts/src/index.ts to create a note, and retrieve note metadata
  3. pass note metadata to frontend to generate proof on website, send proof to someone else
  4. verify proof with website
image image

things needed to know

  1. note preimage, for our case we hardcode randomness

add
fix
type = "contract"

[dependencies]
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.9", directory = "noir-projects/aztec-nr/aztec" }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this to work with the latest testnet version, 2.0.3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have updated everything to work with latest testnet version !


[dependencies]
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.9", directory = "noir-projects/aztec-nr/aztec" }
uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.9", directory = "noir-projects/aztec-nr/uint-note" }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be updated to 2.0.3 as well?

"lint": "eslint ."
},
"dependencies": {
"@aztec/accounts": "0.87.9",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update

@sklppy88 sklppy88 requested a review from critesjosh September 23, 2025 11:03
Copy link

@critesjosh critesjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits, but its working! this is super cool and will be a great reference 🙏

aztec-up @ 2.0.3

Steps:
1. aztec-nargo compile in circuits/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you wrap the commands in backticks (`) so that they show up as code blocks? it makes it more clear

This proves note hash delivery

Prerequisites:
aztec-up @ 2.0.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a link to the docs on how to install aztec-up

@@ -0,0 +1,16 @@
This proves note hash delivery

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some more context. Why would someone want to do this? It might be helpful to explain the question that instigated the development of this example.

1. aztec-nargo compile in circuits/
2. aztec-nargo compile in sample-contract
3. aztec-postprocess-contract in sample-contract
4. yarn codegen in scripts

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. yarn codegen in scripts
4. `yarn && yarn codegen` in ./scripts

5. aztec start --sandbox in terminal 2
6. yarn start in scripts
7. copy details outputted by step 6
8. yarn dev in vite

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
8. yarn dev in vite
8. `yarn && yarn dev` in ./vite

4. yarn copy-target in scripts
5. aztec start --sandbox in terminal 2
6. yarn start in scripts
7. copy details outputted by step 6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where am i supposed to copy this? continuing through, I see its meant to be copy pasted in the web app, but that isnt clear at this point

Also i see the output in my terminal like this:

image

Can you log it in a way that makes it easier to copy-paste? as is, when i double click on the value it highlights this whole line
image

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdyt about making it so that the "Generate Proof" and "Verify Proof" tabs are shown next to each other, so you dont have to toggle between the pages?

image

@critesjosh
Copy link

critesjosh commented Sep 23, 2025

Oh 1 more thing, can you create a CI test for this? It may be helpful to look at how its done for aztec-starter https://github.com/AztecProtocol/aztec-starter/tree/main/.github/workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants