Skip to content

Aztec: A Privacy-First Layer 2 for Ethereum

Ethereum’s transparency provides security and auditability but also makes all transactions, balances, and smart contract state publicly visible.

Aztec offers a privacy-focused Layer 2 (L2) solution on Ethereum, supporting hybrid private and public state and execution. Developers can create smart contracts whose operations are verified using zero-knowledge proofs (ZKPs).

In addition to scalability features found in other zk-rollups, Aztec introduces a dedicated virtual machine (the AVM) designed to handle privacy-preserving computations natively.

This is the short version. The long one covers the key hierarchy, note delivery and tagging, the kernel circuits and their cost profile, fees, portals, what a transaction still leaks, and a comparison with four other confidential systems: How Aztec Works — Private Execution, Notes and Nullifiers, and a Comparison with Zama FHE, Zcash, Canton and Railgun.

This article has been made with the help of Claude Code and several custom skills

What you need to know first

Aztec combines several building blocks that this overview names without explaining.

  • zk-rollup: a layer 2 that executes transactions off-chain, batches them, and posts a validity proof that a contract on Ethereum verifies. Aztec is a zk-rollup that adds private execution on top of this model.
  • zk-SNARK: a short zero-knowledge proof that a computation was done correctly, cheap to verify and revealing nothing about the private inputs; see Understanding zk-SNARK. The PXE produces such proofs for private functions, and the rollup circuits aggregate them.
  • UTXO model: state is a set of discrete outputs that are created once and spent once, rather than account balances updated in place; see The Extended UTXO Model, and How It Differs from Bitcoin. Aztec’s private notes follow this model.
  • Merkle tree: a tree of hashes whose root commits to every leaf, so that membership of one leaf can be proven with a short path of hashes. Aztec stores note hashes, nullifiers and public state in such trees and proves membership inside circuits.
  • Commitment: a value that binds to some data without revealing it, typically a hash of the data and some randomness; see The Pedersen Commitment - Overview. A note hash is a commitment to a note, which is why the chain can record a note without learning its content.
  • Account abstraction: making each account a smart contract with its own authentication logic, as ERC-4337 does on Ethereum without a protocol change; see ERC-4337: Account Abstraction Using Alt Mempool. On Aztec it is built into the protocol.

Aztec Architecture Overview

At a high level, Aztec’s architecture comprises several key layers:

  • Aztec.js – SDK for interacting with the network.
  • PXE (Private Execution Environment) – Executes private functions client-side.
  • AVM (Aztec Virtual Machine) – Executes public functions network-side.
  • Rollup Sequencer & Prover Network – Aggregates transactions and produces ZK proofs.
  • Ethereum Bridge Contract – Verifies rollup proofs on L1 and updates final state commitments.

Transaction flow:

  1. A user constructs a transaction via aztec.js.
  2. Private functions execute locally in the PXE.
  3. PXE generates a ZK proof of correctness.
  4. Public functions execute in the AVM.
  5. The rollup sequencer batches transactions.
  6. A rollup proof is verified on Ethereum.

This dual-environment model enables composable transactions—private and public logic can interact in a single pipeline without breaking confidentiality.


Execution Model: Private and Public

Aztec defines two distinct execution domains:

Type Environment Privacy Description
Private Execution Client-side (PXE) Encrypted Runs user-specific logic privately and outputs a proof
Public Execution Network-side (AVM) Transparent Runs verifiable state updates visible to all

Private execution always precedes public execution. This directional constraint ensures determinism and prevents privacy leaks—private functions can enqueue public calls, but not vice versa.


State Model: Private and Public

Aztec maintains two complementary state spaces: Private and Public states

aztec-private-public-state

Private State

  • Represented by UTXOs called notes.
  • Stored in an append-only note hash tree.
  • Nullifiers mark notes as spent.
  • Encrypted to ensure only recipients can view them.
  • Provides unlinkable transactions and selective disclosure.

Public State

  • Stored in a public Merkle tree.
  • Directly updated by the AVM.
  • Visible to all participants.
  • Ideal for transparent global data (e.g., token supply, governance).

This hybrid state model allows developers to combine private and public logic—for instance, a private lending protocol interacting with a public liquidity pool.


Core Components

Private Execution Environment (PXE)

The PXE is the user’s local runtime that:

  • Executes private contract functions.
  • Generates ZK proofs for correctness.
  • Manages encryption keys and notes.
  • Provides scoped APIs for dapps and wallets.
  • Synchronizes with the network for note discovery.

It acts as a confidential sandbox. Dapps can only access PXE data they’re authorized for, ensuring strong privacy boundaries between contracts and accounts.

Aztec Virtual Machine (AVM)

The AVM executes public contract functions.
It mirrors the EVM in design but extends it for Aztec’s privacy architecture:

  • Custom instruction sets for hybrid execution.
  • Deterministic call graph resolution.
  • Proof-friendly opcode semantics.

PXE and AVM are logically disconnected; data passes only via proofs, preserving end-to-end privacy.

Noir

Noir is Aztec’s domain-specific language for writing zero-knowledge circuits.
It allows developers to express private logic succinctly and compile it into constraint systems compatible with Aztec’s proving stack.

Noir is universal—circuits written in Noir can be verified on Aztec, other zk-rollups, or standalone applications.

Circuits

Aztec’s privacy guarantees are enforced cryptographically through circuit constraints:

  • Hidden function calls: Execution logic is never revealed.
  • Encrypted state updates: Commitments replace cleartext writes.
  • Nullifier checks: Prevent double-spending without revealing linkage.
  • UTXO anonymity: Inputs and outputs are unlinkable.

Unlike Ethereum, where validators replay transactions, Aztec validators only verify succinct proofs, ensuring confidentiality and scalability simultaneously.

Aztec’s protocol-level security is enforced by a set of circuits:

Circuit Function
Kernel Circuit Validates individual transactions
Rollup Circuit Batches multiple kernel proofs
Squisher Circuit Compresses rollup proofs for Ethereum verification

These circuits ensure:

  • Hidden execution of private functions.
  • Valid note creation and nullification.
  • Correct rollup aggregation.
  • Efficient L1 verification using Fflonk proofs.

Accounts and Keys

Every Aztec account is a smart contract.
This enforces account abstraction (AA) natively—authentication logic, fee models, and nonce schemes are all programmable.

Each account has several protocol key pairs, of which two are in active use:

Key Type Purpose
Nullifier Key Generates nullifiers for spent notes
Incoming Viewing Key Decrypts notes received

The outgoing viewing, tagging, message-signing and fallback key pairs are also part of the account but are reserved and not currently used. Transaction authorization relies on a separate signing key, which the account contract defines and can rotate.

Developers can implement arbitrary signature verification schemes (e.g., Schnorr, BLS, multisig) directly in account contracts, allowing wallets to define unique security and UX models.


Wallet Architecture & Transaction Lifecycle

Aztec wallets extend beyond simple key managers—they function as proof generators and private state managers.

Transaction Lifecycle

aztec-transaction-lifecycle

  1. The dapp calls a contract function via the wallet.
  2. The wallet executes private logic in PXE.
  3. ZK proofs are generated locally.
  4. The transaction (proof + calldata) is submitted to the network.
  5. Sequencer includes it in a rollup.
  6. Ethereum verifies the rollup proof.

Wallets also manage:

  • Authwits (Authorization Witnesses): For delegating permissions to other contracts.
  • Note tracking: Syncing with on-chain commitments.
  • Fee management: Private or paymaster-sponsored gas models.

Developer Considerations

  • Composability: Private ↔ Public contract calls are supported.
  • Data design: Differentiate between private commitments and public variables.
  • Fee models: Paymasters can sponsor or abstract fees.
  • Nonces: Fully programmable at the contract level.
  • Optimization: Proof generation is compute-heavy—efficient Noir coding is key.

Summary

Comparison with Other Privacy Systems

Feature Aztec Monero Zcash Tornado Cash Railgun
Architecture zk-Rollup (L2) L1 blockchain L1 blockchain Smart contract mixer Smart contract + zk circuit
Privacy Scope Private + public smart contracts Full-chain privacy Transaction privacy Deposit/withdraw unlinkability Transaction privacy
Composability Full (private ↔ public) None Limited None Limited
Execution Model PXE (private) + AVM (public) Native chain Native chain EVM-only EVM-based
Account Abstraction Native None None None Partial
Proving System Custom circuits (Honk/Fflonk) Bulletproofs zk-SNARKs zk-SNARKs zk-SNARKs
Ethereum Integration Direct (L2 verified on L1) None None Native Native
Programmability Noir smart contracts Minimal Limited None Moderate
Privacy Guarantees ZK composability of state + execution Strong TX privacy TX privacy Mixer unlinkability TX privacy in EVM

Summary Table

Category Description
Objective Programmable privacy on Ethereum
Execution Environments PXE (private) + AVM (public)
State Model Hybrid (private UTXOs + public state)
Core Circuits Kernel, Rollup, Squisher
Language Noir
Account Model Full account abstraction
Wallet Role Proof generation, note management, authwit delegation
Privacy Enforcement ZK circuits for hidden state + execution
Ethereum Integration Rollup proofs verified on L1
Differentiator Composable, programmable privacy for developers

Mindmap

Mindmap of the Aztec privacy-first Layer 2 covering its architecture, execution model, state model, core components, accounts and keys, wallet architecture, privacy enforcement and developer considerations

Annex

Key Terms

Term Definition
Layer 2 (L2) A network that runs on top of Ethereum and settles to it, here by posting rollup proofs that an L1 contract verifies.
Zero-knowledge proof (ZKP) A proof that a statement is true which reveals nothing beyond its validity; Aztec uses it to verify private execution without seeing its inputs.
PXE (Private Execution Environment) The user’s local runtime that executes private functions, generates their proofs, and manages keys and notes.
AVM (Aztec Virtual Machine) The network-side virtual machine that executes public functions, modelled on the EVM with proof-friendly opcodes.
Private execution Contract logic run client-side in the PXE, whose result reaches the network only as a proof; it always precedes public execution.
Public execution Contract logic run by the network in the AVM, with state changes visible to everyone; private functions can enqueue public calls, not the reverse.
Note A unit of private state in UTXO form, encrypted so that only its recipient can read it.
Note hash tree The append-only Merkle tree holding the commitments of all private notes.
Nullifier A value published when a note is spent, which prevents double-spending without revealing which note was consumed.
Public state tree The Merkle tree holding public contract state, updated directly by the AVM.
Noir Aztec’s domain-specific language for writing zero-knowledge circuits and private contract logic.
Kernel circuit The protocol circuit that validates an individual transaction and its private function calls.
Rollup circuit The circuit that batches multiple kernel proofs into one rollup proof.
Nullifier key The account key used to derive the nullifiers of the notes it spends.
Incoming viewing key The account key used to decrypt the notes it receives.
Authwit (authorization witness) A permission an account grants so that another contract can act on its behalf.
Paymaster A contract that sponsors or abstracts a transaction’s fees for the user.

References

You might also enjoy