Cairo course

Cairo Level 12: Proof-Oriented Execution

Proof-Oriented Execution is level 12 of 14 of the LoWisa Cairo course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-30

Sierra and CASM Concepts

  • Sierra. Cairo compiles to Sierra: a safe intermediate form where every program terminates provably.
  • CASM. Sierra lowers to CASM: the assembly the prover actually traces.
  • Why the pipeline. The pipeline guarantees provability: no unprovable panic paths reach the runner.

Provable Computation

  • Execution traces. A run produces a trace: every step recorded in the form the STARK attests.
  • Hints awareness. Non-deterministic hints let provers compute cheaply and verify strictly: power fenced by verification.
  • Off-chain provable programs. Cairo proves off-chain computation too: verifiable programs beyond contracts.

Understanding Cairo's Unique Runtime

  • Costs think in steps. Cairo cost thinks in steps and builtins: the proving bill, not CPU seconds.
  • Memory revisited. Write-once memory explains the idioms: append-only arrays, squashed dicts.
  • The mental model. The runtime mental model: compute forward, prove everything: design follows that grain.

Before and after this level

  • Before: Level 11: Security: Access Control, Contract Threats, Secure Starknet Design.
  • Next: Level 13: Performance: Execution and Storage Cost, Efficient Contract Patterns, Production Optimisation.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does Cairo Level 12: Proof-Oriented Execution cover?

Sierra and CASM Concepts, Provable Computation, Understanding Cairo's Unique Runtime: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 11: Security, which covers Access Control, Contract Threats, Secure Starknet Design.

Learn Cairo on your phone

The first level is free. LoWisa is on Google Play and the App Store.