/aztec-noir-course

Resources for learning Noir from ZKCamp's Aztec Course

ZKCamp's Aztec Noir Course

About Aztec

Aztec is a first-of-its-kind hybrid zkRollup supporting both public and private smart contract execution. It will allow developers to build fully programable, privacy preserving smart contracts, with composable call semantics using our ZK-Snark programming language, Noir.

About ZKCamp

ZKCamp is a ZK education company. ZKCamp's primary offering is a live cohort-based course that teaches ZKPs and their underlying mathematical and cryptographic principles using hands-on examples and engaging assessments. The course is tailored for engineers who do not have a math or cryptography background but are eager to learn it. Through a structured curriculum and live sessions with instructors, participants will have the opportunity to learn and engage with the material in a collaborative environment. Upon completion of the course, participants will have the knowledge and skills necessary to build decentralized applications based on ZKPs.

What is this course about?

Zero-knowledge proofs (ZKP) have been gaining tremendous traction in the blockchain space, came up first as a privacy solution and increasingly as a scaling solution.

Noir, Aztec's language for programming zero knowledge circuits, offers a unique, easy approach to building applications that leverage zero knowledge proofs. Most ZK frameworks require advanced cryptography expertise, but Noir abstracts away much of the complexity to open up zkApp development to the broader pool of web 3.0 developers.

The shift from traditional development to building ZKP applications with Noir introduces a new set of concepts and tools that may seem overwhelming at first. Aztec collaborated with ZKCamp.xyz to launch the first live cohort to teach Noir to a set of 30 developers durind Aug 13-18, 2023.

The course, led by the instructors at ZKCamp and sponsored by Aztec, is tailored for engineers who do not have a math or cryptography background but are eager to learn it. Through a structured curriculum and live sessions with instructors, participants had the opportunity to learn and engage with the material in a collaborative environment.

Prerequisites

  1. Read this blog to make sure you have a basic understanding of what zero-knowledge proofs are all about.

  2. Zero-knowledge proofs are based on certain mathematical primitives. Read the blogs below to get a basic understanding of the underlying mathematics

  3. Read this blog to get an introduction to Information Theory.

  4. To build applications with Noir, you need to know basics of solidity. Learn the basics of Solidity, if you aren’t familiar with it already, through this short course.

  5. Set up the Noir development environment.

Lectures & course materials

Lectures are of 90 min each. Each of the items below has the lecture recording, slides, quizzes and assignments associated with the lecture

 Lecture 1 - Cohort Introduction & ZKP Fundamentals
The first lecture reviews the curriculum and covers some of the Zero-Knowledge Proofs fundamentals that will be useful for future lectures. The lecture ends with a meet and greet session amongst the ZKCampers in the cohort.
  • Recording
  • Slides
  •  Lecture 2 - Introduction to Aztec Ecosystem
    In this lecture, Josh, from developer relations at Aztec, provides an introduction to Aztec. The lecture touches upon the history of Aztec, its differentiation from other L1/L2 protocols, Aztec's architecture, Noir's place within the Aztec ecosystem, and the future roadmap for Aztec.
  • Recording
  • Slides
  •  Lecture 3 - Noir Basics
    This lectures explores the foundational concepts of the Noir language by examining a series of Noir programs. The lecture discusses topics such as Primitive and Compound Data Types, Constraints, and writing tests.
  • Recording
  • Slides
  • Quiz - Noir Basics
  • Quiz Solutions - Noir Basics
  • Assignment - Toy hashing alogrithm in Noir
  •  Lecture 4 - Building a Noir Application - Part 1
    Just knowing the Noir programming language is not enough. To build private and decentralized applications, one needs to learn how to setup a project, use Noir CLI, generate a verifier contract, and also integrate it with the frontend. In the first part of a two part lecture series, students learn how to build a private DAO app in Noir from scratch. Students are also introduced to couple of ZK primitives - Identity Commitment and Merkle Trees.
  • Recording
  • Slides
  • Reading Material - Refer to the following branches of this repo
  •  Lecture 5 - Building a Noir Application - Part 2
    Part 2 of Building a Noir Application introduces the steps to generate, compose and test a Solidity Smart contract to manage the Private Voting for the DAO. Students are also introduced to the ZK primitive - Nullifers. Finally, students learn how to use Noir in the browser.
  • Recording
  • Slides
  • Assignment - StealthDrop in Noir
  • Reading Material - Refer to the following branches of this repo
  •  Lecture 6 - Advanced Noir
    The first part of this lecture does a deep dive into topics such as Noir's novel intermediate representation (ACIR), constraints optimizations, and security. During the second half, Josh from Aztec covers topic like Recursion, Storage Proofs in Ethereum. He then sheds light on how students can actively participate in Noir through Aztec's grant initiatives.
  • Recording
  • Slides (Rajesh)
  • Slides (Josh)
  • Reading Material - Refer to the following branches of this repo