Module 5 · Interview Prep: A P2P Wallet and Ledger Lesson 28 of 54
Money Invariants for a Wallet
No money created, exactly once, never below zero, append-only entries, and books that match the bank.
Transcript
25 sentences · select one to jump thereCheck your understanding
A transfer went to the wrong person and must be fixed. What does the append-only rule require?
Lesson notes
The rule
Every transfer adds up to zero, and the sum of all wallets equals the money in the bank