pull down to refresh
554 sats \ 1 reply \ @k00b 8 Sep \ on: Can someone explain the need for channels in a lightning node? lightning
I remember asking a similar question at a BitDevs a few years ago as a thought experiment; "How do we get rid of lightning channels? They're the worst." It appeared glib, but I wanted someone to explain why they needed to exist else devise something better.
To understand lightning channels, it helps use metaphors.
Let's imagine you and I:
- have accounts at the same bank
- want trade goods and services with each other for money
- the bank is closed for several weeks
To do this we might record all the transactions between us in spreadsheet, recording what each of us is owed at any point in time, then when the bank opens if I owe you money I send it to you and if you owe me money you send it to me.
If you and I don't know each other well, before we agree to start trading, we might sign a contract:
- enforcing you have $10 and I have $10 to start
- enforcing that if I give you $10, I'm not also giving $10 to someone else (because I only have $10 total)
The bank is bitcoin's blockchain and our spreadsheet is a lightning channel. A lightning channel exists to:
- record the transactions between us
- prove we own the bitcoin we started the lightning channel with
- enforce that we don't spend the same bitcoin used in the lightning channel, outside of the channel
If you want to pay fees to bitcoin miners every time you transfer money, you don't need a lightning channel!
Very nice and elegant answer!
reply