Each Lightning channel state is backed by a pair of commitment transactions, pre-signed on-chain settlements that either party can broadcast if cooperation fails.
Why this matters
If commitments are wrong, someone can steal funds or deadlock value. This is the cryptographic spine of Lightning security.
Analogy
Every time you update the bar tab, you both sign a new “final bill” and destroy the ability to cash an older bill, because an old bill would be fraud and is punishable.
Revocation and penalties
When state advances to n, state n-1 is revoked. Publishing a revoked commitment lets the peer sweep funds via a penalty (justice) transaction.
Loading diagram…