Skip to main content

Aztec.nr

Aztec.nr is the smart contract development framework for Aztec. It is a set of utilities that help you write Noir programs to deploy on the Aztec network.

Contract Development

Prerequisites

Flow

  1. Write your contract and specify your contract dependencies. Every contract written for Aztec will have aztec-nr as a dependency. Add it to your Nargo.toml with
# Nargo.toml
[dependencies]
aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="aztec-packages-v0.71.0", directory="noir-projects/aztec-nr/aztec" }
  1. Write your contracts.
  2. Profile the private functions in your contract to get a sense of how long generating client side proofs will take
  3. Write unit tests using the TXE and end-to-end tests with typescript
  4. Compile your contract
  5. Deploy your contract

Section Contents