Verifying Payment Channels with TLA+
summary
Model checks a Lightning-style payment channel in TLA+, with a reusable UTXO/transaction and blockchain model, an explicit adversary and a time abstraction, and a visualization that emits flip-book animation traces for counterexamples. The verified claim is: an honest party finally receives at least its correct on‑chain balance. The implementation is ~1,200 LOC, TLC explores ~1,000,000 states in about two hours on a notebook, and the checked scenario satisfies the security property.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 3:23Payment Channels
- 6:07Lightning Network
- 10:50Security Property
- 11:49Transactions
- 15:30Signatures
- 21:10Cheat
- 24:10Time
- 28:32Results
- 30:44Conclusion
- 32:40How prevalent is TLA
- 33:38Visualization
- 34:28Animation Model
- 35:29Hash Functions
- 36:30Appalachia Model Checker
- 36:49Bitcoin probabilistic model
- 37:31Bitcoin payment channel protocol
- 38:22Optimization
