Latest / Bitranked Podcast / Lightning Network Explained: Faster and Cheaper Bitcoin Payments
Transcript
- 0:00Ryan: So say a friend grabs you a coffee and you wanna pay her back two dollars in bitcoin.
- 0:04Daniel: Right, and on paper that should take about five seconds.
- 0:07Ryan: Yeah, not quite. It can take a while to go through, and there's a fee on top.
- 0:12Daniel: And on a busy day, that fee can eat up a pretty big chunk of your two dollars.
- 0:17Ryan: Which is kinda backwards, right? For money that's supposed to be digital?
- 0:21Daniel: It is, yeah, but there's a good reason it works that way.
- 0:24Daniel: And there's a fix that was built for exactly this kind of payment, called the Lightning Network.
- 0:39Ryan: This is the Bitranked Podcast, where we break crypto down in plain English. I'm Ryan.
- 0:44Daniel: And I'm Daniel.
- 0:45Ryan: And today, it's Lightning.
- 0:46Ryan: So I figure we start with how bitcoin works underneath, because that's where the problem comes from.
- 0:51Ryan: Then we get into what Lightning does about it, what it's like to use, and where it falls short.
- 0:56Daniel: Good call, because Lightning only really clicks once you see the problem it's solving.
- 1:00Ryan: So let's start at the bottom.
- 1:02Ryan: People talk about the Bitcoin chain all the time, and I'm not sure most of us could actually explain what it is.
- 1:07Daniel: The easiest way to think about it is as a shared public record.
- 1:12Daniel: Every confirmed bitcoin payment gets written down in it.
- 1:15Daniel: And the whole network relies on that one record to know who owns what.
- 1:20Ryan: So it's less like a bank, and more like... a notebook that everyone shares?
- 1:27Daniel: A notebook that nobody owns, and that's the important bit.
- 1:30Daniel: With a bank, you've got one company keeping the books—
- 1:33Ryan: And here there's no company.
- 1:35Daniel: No, nobody's in charge of it.
- 1:36Daniel: Instead, loads of computers around the world check every entry against the rules.
- 1:41Daniel: And once a page is written, it can't just be quietly changed.
- 1:45Ryan: Right, so that's what people mean by the main chain.
- 1:48Daniel: Yeah, that's it. New pages get added on a fairly regular rhythm, and each page is called a block.
- 1:53Daniel: There's a new one about every ten minutes on average, sometimes sooner and sometimes later.
- 1:58Ryan: So that's why it's called a blockchain.
- 2:01Daniel: Right. And each new block is tied to the one before it.
- 2:03Daniel: So if someone tried to change an old page, it'd break every page that came after it.
- 2:07Daniel: That's what keeps the record honest.
- 2:09Ryan: And the waiting comes from those ten minutes, I'm guessing.
- 2:12Daniel: Partly, yeah.
- 2:13Daniel: A payment only counts as confirmed once it's actually written into a block, and until then it's just sort of sitting in a queue.
- 2:19Daniel: For a normal payment, the first confirmation usually takes anywhere from ten minutes to about an hour.
- 2:24Ryan: Wait, as long as an hour? I'm just paying her back for a coffee.
- 2:27Daniel: And the amount doesn't change that. Two dollars or two million, it goes through the same process.
- 2:33Ryan: And then there's the fee.
- 2:34Daniel: That's the notebook too, really. Each block only has so much room.
- 2:38Daniel: So when loads of people want their payment in at once, they compete for space.
- 2:42Daniel: The fee is basically your bid for a spot on the next page.
- 2:46Ryan: So it's basically an auction.
- 2:48Daniel: Kind of, yeah, and it's not based on how much you send. It's based on how busy things are right then.
- 2:54Ryan: Which is fine if you're moving a million, not so much for two bucks.
- 2:59Daniel: Exactly. The main chain's great as a permanent record that anyone can check.
- 3:03Daniel: It's just not built for small, quick payments.
- 3:06Ryan: Right, okay.
- 3:07Daniel: And that's the gap Lightning is meant to fill.
- 3:09Daniel: It doesn't change the notebook at all, it just stops writing every little payment into it.
- 3:14Ryan: Huh, so how does it get away with that?
- 3:16Daniel: Lightning is a layer that sits on top of Bitcoin.
- 3:19Daniel: It still uses the main chain, but only at the start and at the end.
- 3:22Daniel: Everything in between happens directly between the people involved. Take you and your friend.
- 3:27Daniel: Say the two of you get coffee all the time, and you take turns paying.
- 3:31Ryan: Which is a lot of tiny paybacks.
- 3:33Daniel: And normally, each one would be its own entry in the notebook.
- 3:37Daniel: With Lightning, the two of you lock some bitcoin away together instead.
- 3:41Daniel: That takes one normal payment on the main chain, so there's a fee to get started.
- 3:45Ryan: A fee up front I can live with.
- 3:48Daniel: And that gets you what's called a channel. The bitcoin in it can only be moved if both of you sign off.
- 3:53Ryan: So it's like a joint account... kind of?
- 3:56Daniel: Sort of. But while the channel's open, the money doesn't actually go anywhere.
- 4:00Daniel: What changes is who owns how much of it.
- 4:03Ryan: Wait, so nothing actually leaves the channel?
- 4:06Daniel: Not while it's open, no. Say you start with half each.
- 4:09Daniel: You pay her back for the coffee, and you both sign off on a new split.
- 4:13Daniel: A bit more on her side, a bit less on yours.
- 4:16Ryan: Then next week she pays, and it tips back my way.
- 4:20Daniel: That's the idea, a new split every time, and each one replaces the last.
- 4:23Daniel: You can do that as often as you like, and none of it goes into the main notebook.
- 4:27Daniel: When you're done, you just close the channel.
- 4:30Ryan: Yeah, okay.
- 4:32Daniel: And the final split gets written onto the main chain, and you each get your share back as normal bitcoin.
- 4:38Daniel: You see where this is going?
- 4:40Ryan: So a whole year of coffees, and the notebook sees... two entries.
- 4:46Daniel: The opening and the closing. There could be two payments in the middle, or two hundred.
- 4:50Daniel: And that's where you save the time, and most of the fees.
- 4:54Ryan: Here's what I'd worry about, though. All those old splits are still out there.
- 4:58Ryan: What stops her from closing with an older one that was better for her?
- 5:01Daniel: Yeah, that's the obvious question. And the rules were written with exactly that in mind.
- 5:06Daniel: If one side tries to close the channel with an old split, the other side can take everything in the channel.
- 5:11Ryan: Everything? Not just the difference?
- 5:13Daniel: The whole lot.
- 5:14Daniel: So cheating doesn't just fail, it can cost you everything in the channel, which makes it pretty pointless to try.
- 5:20Ryan: Brutal, but fair, I guess.
- 5:22Daniel: As long as someone's keeping an eye on it.
- 5:24Ryan: Meaning me, I guess.
- 5:26Daniel: You'd hope so, yeah.
- 5:27Daniel: Either you or someone watching on your behalf has to notice the old split in time, otherwise it might not get caught.
- 5:33Ryan: So it's not automatic.
- 5:35Daniel: No, somebody has to keep an eye on it.
- 5:37Ryan: Alright, the channel part I've got. But the bakery down the street, I don't have a channel with them.
- 5:41Ryan: And I'm not gonna open one with every place I grab lunch.
- 5:44Daniel: You don't have to, and this is where the network part comes in.
- 5:47Daniel: Channels link up with each other, so say your friend and that bakery already share one.
- 5:52Daniel: Then your payment can go from you to her—
- 5:54Ryan: And then from her to the bakery?
- 5:56Daniel: Exactly. And in practice, it can hop through several people's channels until it gets where it's going.
- 6:01Ryan: So for a second, my money's just... sitting with a bunch of strangers?
- 6:07Daniel: It sounds like that, but they never get to keep it.
- 6:09Daniel: The payment's set up so it either gets all the way to the bakery, or it doesn't happen at all.
- 6:14Ryan: So nobody in the middle can just pocket it, not even my friend.
- 6:18Daniel: No, you don't have to trust the people in between at all.
- 6:21Ryan: And the cost? Because that was the— that was the whole problem.
- 6:25Daniel: For a small payment, the whole thing typically costs less than a cent. And it arrives almost instantly.
- 6:31Ryan: Now that works for a sandwich.
- 6:33Daniel: Yeah, that's exactly what it's made for, small payments and lots of them.
- 6:38Ryan: Is there a company running all this behind the scenes, though?
- 6:41Daniel: Not one company, no. It's more— how do I put this.
- 6:44Daniel: Lightning is really a shared set of rules, worked out together by the people who build the main Lightning programs.
- 6:50Ryan: Huh, okay, that makes sense.
- 6:52Daniel: No, nobody owns the whole thing.
- 6:54Daniel: Each channel is shared by the two people who opened it, and the network is just all those channels put together.
- 7:00Ryan: So say I actually wanna pay the bakery this way. Where do I even start?
- 7:04Daniel: You need a wallet, which is just the app you use to send, receive and hold bitcoin.
- 7:08Daniel: For Lightning it has to be one that supports it, and you'll probably see amounts shown in sats.
- 7:14Ryan: Sats? What are those?
- 7:16Daniel: It's short for satoshis, which are the smallest pieces of a bitcoin. One bitcoin is a hundred million sats.
- 7:25Ryan: So it's basically the small change.
- 7:27Daniel: Very small change, yeah. It means you can price a sandwich without a long line of zeros after a decimal point.
- 7:33Ryan: Wait, so sats are, what, Lightning's own coin?
- 7:36Daniel: No, that's an easy one to mix up.
- 7:37Daniel: Sats are just bitcoin in tiny pieces, and Lightning doesn't have a coin of its own.
- 7:42Daniel: What you're sending is bitcoin, it just doesn't go through the main chain every single time.
- 7:47Ryan: So if someone's selling a Lightning coin...
- 7:49Daniel: Then that's something else entirely.
- 7:51Daniel: But there's a bigger choice to make before you pay anyone, and it's about who's actually holding your bitcoin.
- 7:56Ryan: Like the app, or me?
- 7:58Daniel: Pretty much.
- 7:59Daniel: Some services hold the bitcoin for you, which is simpler and feels like a normal payment app, but you're trusting that company with your money.
- 8:07Ryan: And if I'd rather not trust anybody?
- 8:09Daniel: Then you keep full control, and nobody else can freeze your bitcoin or take it away.
- 8:13Daniel: But it's on you to back up the wallet and keep that backup safe.
- 8:17Ryan: So it's convenience versus control, basically.
- 8:20Daniel: That's the trade-off, and neither one is right for everybody.
- 8:22Daniel: It really depends on the person and what they're using it for.
- 8:25Ryan: So I'm at the counter, then what?
- 8:28Daniel: The bakery creates a request for the amount, called an invoice, and it usually shows up as a QR code on their screen.
- 8:34Daniel: You just open your wallet, scan the code, check the amount and confirm.
- 8:39Ryan: So kind of like tapping a card.
- 8:42Daniel: Similar idea, yeah, with one difference.
- 8:44Daniel: An invoice only works for a limited time, so you can't save one and pay it whenever you like.
- 8:48Daniel: You'd just ask for a new one.
- 8:50Ryan: Got it, makes sense.
- 8:51Daniel: Now, it's not all smooth.
- 8:52Daniel: There's one bit that's a lot less obvious, and it goes back to the pot you share with your friend.
- 8:58Daniel: You can only send what's on your side of it.
- 9:00Ryan: Well sure, otherwise it's not my money.
- 9:03Daniel: Right. But it works the other way too. To receive, there has to be room on her side.
- 9:07Daniel: If the whole pot already belongs to you, she can't pay you through that channel.
- 9:12Ryan: Wait, so I could have money in there and still not be able to get paid?
- 9:15Daniel: Through that channel, yeah. What's on your side is how much you can send, not how much you can receive.
- 9:20Daniel: So a bakery that mostly gets paid needs plenty of room on the other side.
- 9:24Daniel: And all of that assumes your phone is even switched on.
- 9:27Ryan: Wait, why would that matter?
- 9:29Daniel: If you run your own channel, your wallet needs to be connected to send or receive.
- 9:33Daniel: So if your friend tries to pay you back while your phone's off, it won't go through.
- 9:37Ryan: Which is a lot to ask of a phone.
- 9:40Daniel: Yeah, and that's why some apps use a service provider.
- 9:42Daniel: It's a company that keeps the channels running in the background, so you don't have to run them yourself.
- 9:48Ryan: And big amounts are a different story, I'd imagine.
- 9:50Daniel: Not really what it's for, no. Lightning is built for small, frequent payments.
- 9:55Daniel: For big amounts, or savings you plan to keep for years, people still tend to use the main chain.
- 10:00Ryan: Where the fee doesn't matter as much.
- 10:02Daniel: Right, exactly.
- 10:04Ryan: I mean, eventually Lightning just replaces the main chain, right?
- 10:07Daniel: It can't, actually, because Lightning is built on top of it.
- 10:10Daniel: Every channel starts and ends there, so without the main chain there's nothing to lock up and nowhere to write the final split.
- 10:16Ryan: So it's more of a partner than a replacement.
- 10:19Daniel: Pretty much, yeah. They just do different jobs.
- 10:23Ryan: So back to the coffee. Next time she grabs one, I'm not waiting an hour. We just shift the split.
- 10:27Ryan: And if it's the bakery, it hops through someone else's channel, usually for less than a cent.
- 10:32Daniel: That's it. And the main chain's still there underneath, for the big, permanent stuff.
- 10:37Daniel: Lightning just handles the small, everyday payments on top.
- 10:41Ryan: And that's all for today.
- 10:43Ryan: You'll find more guides at bitranked.com, and as always, this is general information, not financial advice.
- 10:50Daniel: Thanks for listening.