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" }
Copy link
Contributor

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" }
Copy link
Contributor

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",
Copy link
Contributor

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
Contributor

@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/
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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
Contributor

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

@sklppy88 sklppy88 force-pushed the proof-of-note-creation branch from 1dff5f8 to a4f082c Compare October 31, 2025 13:32
fix
addressing feedback

fix

ab
@sklppy88 sklppy88 force-pushed the proof-of-note-creation branch from a4f082c to d19e895 Compare October 31, 2025 13:33
@sklppy88 sklppy88 merged commit 1357e79 into main Oct 31, 2025
1 of 2 checks passed
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.

3 participants