Skip to content

Introduction to Private Smart Contracts

Learn how to write private smart contracts on Aztec using Aztec.nr.

What are Private Smart Contracts?

Private smart contracts on Aztec allow you to build applications where transaction details, state, and logic can remain private while still being verifiable on a public blockchain.

Getting Started

  • A Simple Aztec Smart Contract - Start with a basic example
  • Example Aztec Smart Contracts - Explore more complex patterns

Key Concepts

Private smart contracts on Aztec differ from traditional Ethereum contracts in several ways:

  • Private State - Contract state can be kept private using notes
  • Private Functions - Function execution can be private, with only proofs posted on-chain
  • Public Functions - Standard public functions are also supported
  • Hybrid State - Contracts can use both private and public state together

Navigate to the sections above to learn how to build your first Aztec smart contract.