Aztec.nr Syntax
Noir is a language which is agnostic to proof systems and use cases. Rather than baking Aztec-specific keywords and smart contract types directly into Noir (which would break this agnosticism), we have developed a framework -- written in Noir -- whose types and methods provide rich smart contract semantics.
On top of Noir's stdlib, we provide Aztec.nr for writing contracts on Aztec.
Aztec.nr contains abstractions which remove the need to understand the low-level Aztec protocol. Notably, it provides:
- Public and private state variable types
- Some pre-designed notes
- Functions for emitting encrypted and unencrypted logs
- Oracle functions for accessing:
- private state
- secrets
- Functions for communicating with Ethereum L1
To setup a aztec-nr project, follow the setup instructions
🗃️ Storage
1 items
📄️ Events
Events in Aztec work similarly to Ethereum events in the sense that they are a way for contracts to communicate with the outside world.
📄️ Functions
This page covers functions, private and public functions composability, as well as their differences.
📄️ Function Context
Documentation of Aztec's Private and Public execution contexts
📄️ Global Variables
Documentation of Aztec's Global Variables in the Public and Private Contexts