Course

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.

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.

Updated 2026-11-25

What you can do as you go

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

The Cairo course, level by level

LevelLessons in it
Start Here: Programs That Can Prove Their ExecutionCairo and STARK Proofs; Cairo and Starknet
Level 1: Cairo FoundationsValues and Types; Functions; Control Flow
Level 2: Data StructuresStructs and Enums; Pattern Matching; Collections
Level 3: Ownership & MemoryCairo Memory Model; References and Snapshots; Designing Safe Data Flow
Level 4: Traits & GenericsTraits; Generic Types; Reusable Cairo Abstractions
Level 5: Modules & PackagesModules; Scarb; Package Organisation
Level 6: Starknet ContractsContract Structure; Storage; External Functions
Level 7: Events & Contract InteractionEvents; Dispatchers and Interfaces; Contract-to-Contract Communication
Level 8: ComponentsReusable Contract Components; Composition; Contract Architecture
Level 9: Accounts & TransactionsStarknet Accounts; Transactions; Fees and Execution
Level 10: TestingCairo Tests; Starknet Contract Tests; Failure and Edge Cases
Level 11: SecurityAccess Control; Contract Threats; Secure Starknet Design
Level 12: Proof-Oriented ExecutionSierra and CASM Concepts; Provable Computation; Understanding Cairo's Unique Runtime
Level 13: PerformanceExecution and Storage Cost; Efficient Contract Patterns; Production Optimisation
Level 14: Cairo MasteryAdvanced 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.

RoleProjectThe situation
Cairo DeveloperProvable Scoreboard LibraryA pure Cairo library before any contract: a tournament scoreboard: rankings, tie-breaks, provable history: ownership, traits and exhaustive matching doing the work.
Starknet DeveloperGuestbook Contract With EventsYour first Starknet contract done properly: signed guestbook entries, paginated reads, complete events: storage, entry points and dispatch learned on honest ground.
Cairo EngineerAudit and Rescue a Token Sale ContractYou 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 EngineerStaking Protocol With ComponentsA 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 SpecialistProvable Off-Chain Game With On-Chain SettlementThe 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.
  • Games on what you have learned. See Revision games.
  • On your phone. The app is on Google Play and the App Store. See 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.