# Learn Cairo

> Programs that can prove their own execution: Cairo’s Rust-like discipline, Starknet contracts, components and STARK-provable computation: the language of validity rollups, mastered end to end. The full outline of the LoWisa Cairo course: 15 levels, 44 lessons. The first level is free.

Programs that can prove their own execution: Cairo’s Rust-like discipline, Starknet contracts, components and STARK-provable computation: the language of validity rollups, mastered end to end.

This is the whole Cairo course in the LoWisa phone app, level by level: 15 levels, 44 lessons and 132 ideas, each taught and then checked. The first level, Start Here: Programs That Can Prove Their Execution, is free.

## What you can do as you go

| Where you are | What you can do |
| --- | --- |
| Start Here: Level 4 | You write real Cairo: felts, ownership, traits and exhaustive matching under the proving mental model. |
| Levels 5–9 | You build Starknet contracts: storage, events, dispatchers and component architecture done deliberately. |
| Levels 10–12 | You command accounts, transactions, testing with cheatcodes, and Starknet’s security discipline. |
| Levels 13–14 | You reason about Sierra, traces and step budgets: performance as proving economics. |
| Project ladder | Five desktop app projects from a provable library to off-chain-proved settlement: validity-rollup engineering, earned. |

## The Cairo course, level by level

| Level | Lessons in it |
| --- | --- |
| [Start Here: Programs That Can Prove Their Execution](/courses/cairo/start-here/) | Cairo and STARK Proofs; Cairo and Starknet |
| [Level 1: Cairo Foundations](/courses/cairo/level-1-cairo-foundations/) | Values and Types; Functions; Control Flow |
| [Level 2: Data Structures](/courses/cairo/level-2-data-structures/) | Structs and Enums; Pattern Matching; Collections |
| [Level 3: Ownership & Memory](/courses/cairo/level-3-ownership-and-memory/) | Cairo Memory Model; References and Snapshots; Designing Safe Data Flow |
| [Level 4: Traits & Generics](/courses/cairo/level-4-traits-and-generics/) | Traits; Generic Types; Reusable Cairo Abstractions |
| [Level 5: Modules & Packages](/courses/cairo/level-5-modules-and-packages/) | Modules; Scarb; Package Organisation |
| [Level 6: Starknet Contracts](/courses/cairo/level-6-starknet-contracts/) | Contract Structure; Storage; External Functions |
| [Level 7: Events & Contract Interaction](/courses/cairo/level-7-events-and-contract-interaction/) | Events; Dispatchers and Interfaces; Contract-to-Contract Communication |
| [Level 8: Components](/courses/cairo/level-8-components/) | Reusable Contract Components; Composition; Contract Architecture |
| [Level 9: Accounts & Transactions](/courses/cairo/level-9-accounts-and-transactions/) | Starknet Accounts; Transactions; Fees and Execution |
| [Level 10: Testing](/courses/cairo/level-10-testing/) | Cairo Tests; Starknet Contract Tests; Failure and Edge Cases |
| [Level 11: Security](/courses/cairo/level-11-security/) | Access Control; Contract Threats; Secure Starknet Design |
| [Level 12: Proof-Oriented Execution](/courses/cairo/level-12-proof-oriented-execution/) | Sierra and CASM Concepts; Provable Computation; Understanding Cairo's Unique Runtime |
| [Level 13: Performance](/courses/cairo/level-13-performance/) | Execution and Storage Cost; Efficient Contract Patterns; Production Optimisation |
| [Level 14: Cairo Mastery](/courses/cairo/level-14-cairo-mastery/) | Advanced Starknet Architecture; Security and Proof Trade-Offs; Reading and Improving Complex Cairo |

Each level has its own page with every lesson and what it teaches.

## Start Here: Programs That Can Prove Their Execution: what the free first level teaches

**Cairo and STARK Proofs**

- **Provable programs.** **Cairo** programs produce a trace a STARK proof can attest: one runner computes, everyone verifies cheaply.
- **Why proofs.** A **proof** replaces re-execution: thousands of transactions verified by checking one small artifact.
- **Verifier asymmetry.** Proving is heavy, **verifying** is cheap: the asymmetry that makes validity rollups scale.

**Cairo and Starknet**

- **Starknet.** **Starknet** is the validity rollup where Cairo contracts live: Ethereum security, Cairo execution.
- **Cairo the language.** Modern Cairo reads like **Rust**: traits, enums, pattern matching: compiled toward provable execution.
- **Two skill layers.** Cairo mastery is two layers: the **language**, and the proving model underneath its costs.

## Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

| Role | Project | The situation |
| --- | --- | --- |
| Cairo Developer | Provable Scoreboard Library | A pure Cairo library before any contract: a tournament scoreboard: rankings, tie-breaks, provable history: ownership, traits and exhaustive matching doing the work. |
| Starknet Developer | Guestbook Contract With Events | Your first Starknet contract done properly: signed guestbook entries, paginated reads, complete events: storage, entry points and dispatch learned on honest ground. |
| Cairo Engineer | Audit and Rescue a Token Sale Contract | You inherit a Starknet token-sale contract with seeded flaws: a missing caller assert, refund reentrancy through a callback, felt arithmetic where bounded math was owed, and silent event gaps. Audit, demonstrate, repair. |
| Senior Starknet Engineer | Staking Protocol With Components | A staking protocol assembled the Starknet way: audited components for ownership and upgrades, your logic for accrual: class-hash upgrade governance and a step budget measured per flow. |
| Cairo Specialist | Provable Off-Chain Game With On-Chain Settlement | The mastery build: a turn-based game whose moves compute off-chain in provable Cairo, settled on-chain by verifying results: the full validity-rollup mental model in one project. |

## How you learn it

- **One idea at a time.** Each lesson teaches a few ideas and asks you about each before it moves on.
- **A checkpoint and flashcards at the end of every level.** See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/getting-started/).

## Frequently asked questions

### How many levels does the LoWisa Cairo course have?

15 levels with 44 lessons, from Start Here: Programs That Can Prove Their Execution to Level 14: Cairo Mastery.

### Is the Cairo course free?

The first level, Start Here: Programs That Can Prove Their Execution, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

### Where does the Cairo course start?

With Start Here: Programs That Can Prove Their Execution. Its first lesson is "Cairo and STARK Proofs".

## Start Cairo with the free first level

LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/cairo/ · Updated 2026-11-25
