BAC-L1-SUB-101Substrate / Polkadot SDK
Rust I — ownership, borrowing, lifetimes
The memory model that makes Rust suited to protocol engineering: what the compiler refuses, and why that refusal is a guarantee.
- Level
- L1 — Blockchain developer
- Duration
- 4 h
- Maintainer
- Polkadot / Substrate Lead Architect
Learning objectives
- 01Explain ownership, borrowing and lifetimes on real code
- 02Fix a borrow error without reaching for a clone every time
- 03Read a compiler error as a design hint
Guided lab
Repair a series of programs that fail to compile, each illustrating one memory-model rule.
Independent lab
Rewrite a small ledger in idiomatic Rust, with no gratuitous cloning.
Security angle
Which vulnerability class memory safety eliminates — and what it leaves entirely untouched.
Assessment
Repaired programs, validated by compilation and the supplied test suite.
