1
00:00:00,000 --> 00:00:04,120
Ryan: So say a friend grabs you a coffee and you wanna pay her back two dollars in bitcoin.

2
00:00:04,660 --> 00:00:07,280
Daniel: Right, and on paper that should take about five seconds.

3
00:00:07,960 --> 00:00:11,400
Ryan: Yeah, not quite. It can take a while to go through, and there's a fee on top.

4
00:00:12,080 --> 00:00:16,780
Daniel: And on a busy day, that fee can eat up a pretty big chunk of your two dollars.

5
00:00:17,300 --> 00:00:20,380
Ryan: Which is kinda backwards, right? For money that's supposed to be digital?

6
00:00:21,060 --> 00:00:24,264
Daniel: It is, yeah, but there's a good reason it works that way.

7
00:00:24,264 --> 00:00:29,660
Daniel: And there's a fix that was built for exactly this kind of payment, called the Lightning Network.

8
00:00:39,150 --> 00:00:43,710
Ryan: This is the Bitranked Podcast, where we break crypto down in plain English. I'm Ryan.

9
00:00:44,270 --> 00:00:44,790
Daniel: And I'm Daniel.

10
00:00:45,330 --> 00:00:46,591
Ryan: And today, it's Lightning.

11
00:00:46,591 --> 00:00:51,442
Ryan: So I figure we start with how bitcoin works underneath, because that's where the problem comes from.

12
00:00:51,442 --> 00:00:56,050
Ryan: Then we get into what Lightning does about it, what it's like to use, and where it falls short.

13
00:00:56,450 --> 00:01:00,090
Daniel: Good call, because Lightning only really clicks once you see the problem it's solving.

14
00:01:00,850 --> 00:01:02,183
Ryan: So let's start at the bottom.

15
00:01:02,183 --> 00:01:07,330
Ryan: People talk about the Bitcoin chain all the time, and I'm not sure most of us could actually explain what it is.

16
00:01:07,990 --> 00:01:12,083
Daniel: The easiest way to think about it is as a shared public record.

17
00:01:12,083 --> 00:01:15,722
Daniel: Every confirmed bitcoin payment gets written down in it.

18
00:01:15,722 --> 00:01:20,270
Daniel: And the whole network relies on that one record to know who owns what.

19
00:01:20,890 --> 00:01:27,370
Ryan: So it's less like a bank, and more like... a notebook that everyone shares?

20
00:01:27,970 --> 00:01:30,870
Daniel: A notebook that nobody owns, and that's the important bit.

21
00:01:30,870 --> 00:01:33,570
Daniel: With a bank, you've got one company keeping the books—

22
00:01:33,950 --> 00:01:34,850
Ryan: And here there's no company.

23
00:01:35,250 --> 00:01:36,844
Daniel: No, nobody's in charge of it.

24
00:01:36,844 --> 00:01:41,297
Daniel: Instead, loads of computers around the world check every entry against the rules.

25
00:01:41,297 --> 00:01:44,650
Daniel: And once a page is written, it can't just be quietly changed.

26
00:01:45,250 --> 00:01:48,150
Ryan: Right, so that's what people mean by the main chain.

27
00:01:48,770 --> 00:01:53,775
Daniel: Yeah, that's it. New pages get added on a fairly regular rhythm, and each page is called a block.

28
00:01:53,775 --> 00:01:58,470
Daniel: There's a new one about every ten minutes on average, sometimes sooner and sometimes later.

29
00:01:58,470 --> 00:02:00,390
Ryan: So that's why it's called a blockchain.

30
00:02:01,250 --> 00:02:03,588
Daniel: Right. And each new block is tied to the one before it.

31
00:02:03,588 --> 00:02:07,159
Daniel: So if someone tried to change an old page, it'd break every page that came after it.

32
00:02:07,159 --> 00:02:08,690
Daniel: That's what keeps the record honest.

33
00:02:09,650 --> 00:02:11,850
Ryan: And the waiting comes from those ten minutes, I'm guessing.

34
00:02:12,550 --> 00:02:13,162
Daniel: Partly, yeah.

35
00:02:13,162 --> 00:02:19,188
Daniel: 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.

36
00:02:19,188 --> 00:02:23,990
Daniel: For a normal payment, the first confirmation usually takes anywhere from ten minutes to about an hour.

37
00:02:24,650 --> 00:02:27,070
Ryan: Wait, as long as an hour? I'm just paying her back for a coffee.

38
00:02:27,570 --> 00:02:32,670
Daniel: And the amount doesn't change that. Two dollars or two million, it goes through the same process.

39
00:02:33,270 --> 00:02:34,170
Ryan: And then there's the fee.

40
00:02:34,710 --> 00:02:38,507
Daniel: That's the notebook too, really. Each block only has so much room.

41
00:02:38,507 --> 00:02:42,994
Daniel: So when loads of people want their payment in at once, they compete for space.

42
00:02:42,994 --> 00:02:46,330
Daniel: The fee is basically your bid for a spot on the next page.

43
00:02:46,890 --> 00:02:48,170
Ryan: So it's basically an auction.

44
00:02:48,950 --> 00:02:54,830
Daniel: Kind of, yeah, and it's not based on how much you send. It's based on how busy things are right then.

45
00:02:54,830 --> 00:02:58,710
Ryan: Which is fine if you're moving a million, not so much for two bucks.

46
00:02:59,230 --> 00:03:03,441
Daniel: Exactly. The main chain's great as a permanent record that anyone can check.

47
00:03:03,441 --> 00:03:05,990
Daniel: It's just not built for small, quick payments.

48
00:03:06,590 --> 00:03:07,130
Ryan: Right, okay.

49
00:03:07,650 --> 00:03:09,706
Daniel: And that's the gap Lightning is meant to fill.

50
00:03:09,706 --> 00:03:13,730
Daniel: It doesn't change the notebook at all, it just stops writing every little payment into it.

51
00:03:14,250 --> 00:03:16,210
Ryan: Huh, so how does it get away with that?

52
00:03:16,750 --> 00:03:19,247
Daniel: Lightning is a layer that sits on top of Bitcoin.

53
00:03:19,247 --> 00:03:22,662
Daniel: It still uses the main chain, but only at the start and at the end.

54
00:03:22,662 --> 00:03:27,402
Daniel: Everything in between happens directly between the people involved. Take you and your friend.

55
00:03:27,402 --> 00:03:30,970
Daniel: Say the two of you get coffee all the time, and you take turns paying.

56
00:03:31,570 --> 00:03:33,170
Ryan: Which is a lot of tiny paybacks.

57
00:03:33,950 --> 00:03:37,241
Daniel: And normally, each one would be its own entry in the notebook.

58
00:03:37,241 --> 00:03:41,010
Daniel: With Lightning, the two of you lock some bitcoin away together instead.

59
00:03:41,010 --> 00:03:45,310
Daniel: That takes one normal payment on the main chain, so there's a fee to get started.

60
00:03:45,870 --> 00:03:47,530
Ryan: A fee up front I can live with.

61
00:03:48,030 --> 00:03:52,850
Daniel: And that gets you what's called a channel. The bitcoin in it can only be moved if both of you sign off.

62
00:03:53,530 --> 00:03:55,970
Ryan: So it's like a joint account... kind of?

63
00:03:56,650 --> 00:04:00,947
Daniel: Sort of. But while the channel's open, the money doesn't actually go anywhere.

64
00:04:00,947 --> 00:04:03,150
Daniel: What changes is who owns how much of it.

65
00:04:03,570 --> 00:04:06,290
Ryan: Wait, so nothing actually leaves the channel?

66
00:04:06,970 --> 00:04:09,940
Daniel: Not while it's open, no. Say you start with half each.

67
00:04:09,940 --> 00:04:13,790
Daniel: You pay her back for the coffee, and you both sign off on a new split.

68
00:04:13,790 --> 00:04:16,210
Daniel: A bit more on her side, a bit less on yours.

69
00:04:16,770 --> 00:04:19,830
Ryan: Then next week she pays, and it tips back my way.

70
00:04:20,290 --> 00:04:23,868
Daniel: That's the idea, a new split every time, and each one replaces the last.

71
00:04:23,868 --> 00:04:27,894
Daniel: You can do that as often as you like, and none of it goes into the main notebook.

72
00:04:27,894 --> 00:04:30,130
Daniel: When you're done, you just close the channel.

73
00:04:30,790 --> 00:04:31,710
Ryan: Yeah, okay.

74
00:04:32,310 --> 00:04:38,436
Daniel: And the final split gets written onto the main chain, and you each get your share back as normal bitcoin.

75
00:04:38,436 --> 00:04:40,070
Daniel: You see where this is going?

76
00:04:40,830 --> 00:04:46,030
Ryan: So a whole year of coffees, and the notebook sees... two entries.

77
00:04:46,210 --> 00:04:50,608
Daniel: The opening and the closing. There could be two payments in the middle, or two hundred.

78
00:04:50,608 --> 00:04:53,490
Daniel: And that's where you save the time, and most of the fees.

79
00:04:54,430 --> 00:04:58,024
Ryan: Here's what I'd worry about, though. All those old splits are still out there.

80
00:04:58,024 --> 00:05:01,250
Ryan: What stops her from closing with an older one that was better for her?

81
00:05:01,830 --> 00:05:06,032
Daniel: Yeah, that's the obvious question. And the rules were written with exactly that in mind.

82
00:05:06,032 --> 00:05:11,190
Daniel: If one side tries to close the channel with an old split, the other side can take everything in the channel.

83
00:05:11,770 --> 00:05:13,290
Ryan: Everything? Not just the difference?

84
00:05:13,930 --> 00:05:14,611
Daniel: The whole lot.

85
00:05:14,611 --> 00:05:20,110
Daniel: So cheating doesn't just fail, it can cost you everything in the channel, which makes it pretty pointless to try.

86
00:05:20,510 --> 00:05:21,810
Ryan: Brutal, but fair, I guess.

87
00:05:22,470 --> 00:05:24,170
Daniel: As long as someone's keeping an eye on it.

88
00:05:24,550 --> 00:05:25,510
Ryan: Meaning me, I guess.

89
00:05:26,170 --> 00:05:27,174
Daniel: You'd hope so, yeah.

90
00:05:27,174 --> 00:05:33,050
Daniel: Either you or someone watching on your behalf has to notice the old split in time, otherwise it might not get caught.

91
00:05:33,450 --> 00:05:34,470
Ryan: So it's not automatic.

92
00:05:35,010 --> 00:05:36,910
Daniel: No, somebody has to keep an eye on it.

93
00:05:37,550 --> 00:05:41,807
Ryan: Alright, the channel part I've got. But the bakery down the street, I don't have a channel with them.

94
00:05:41,807 --> 00:05:44,210
Ryan: And I'm not gonna open one with every place I grab lunch.

95
00:05:44,510 --> 00:05:47,676
Daniel: You don't have to, and this is where the network part comes in.

96
00:05:47,676 --> 00:05:52,049
Daniel: Channels link up with each other, so say your friend and that bakery already share one.

97
00:05:52,049 --> 00:05:54,110
Daniel: Then your payment can go from you to her—

98
00:05:54,390 --> 00:05:55,590
Ryan: And then from her to the bakery?

99
00:05:56,550 --> 00:06:01,130
Daniel: Exactly. And in practice, it can hop through several people's channels until it gets where it's going.

100
00:06:01,890 --> 00:06:06,370
Ryan: So for a second, my money's just... sitting with a bunch of strangers?

101
00:06:07,110 --> 00:06:09,656
Daniel: It sounds like that, but they never get to keep it.

102
00:06:09,656 --> 00:06:14,350
Daniel: The payment's set up so it either gets all the way to the bakery, or it doesn't happen at all.

103
00:06:14,510 --> 00:06:17,490
Ryan: So nobody in the middle can just pocket it, not even my friend.

104
00:06:18,210 --> 00:06:20,670
Daniel: No, you don't have to trust the people in between at all.

105
00:06:21,210 --> 00:06:24,650
Ryan: And the cost? Because that was the— that was the whole problem.

106
00:06:25,230 --> 00:06:30,730
Daniel: For a small payment, the whole thing typically costs less than a cent. And it arrives almost instantly.

107
00:06:31,410 --> 00:06:32,450
Ryan: Now that works for a sandwich.

108
00:06:33,190 --> 00:06:37,890
Daniel: Yeah, that's exactly what it's made for, small payments and lots of them.

109
00:06:38,710 --> 00:06:41,090
Ryan: Is there a company running all this behind the scenes, though?

110
00:06:41,750 --> 00:06:44,198
Daniel: Not one company, no. It's more— how do I put this.

111
00:06:44,198 --> 00:06:49,830
Daniel: Lightning is really a shared set of rules, worked out together by the people who build the main Lightning programs.

112
00:06:50,430 --> 00:06:51,970
Ryan: Huh, okay, that makes sense.

113
00:06:52,590 --> 00:06:54,137
Daniel: No, nobody owns the whole thing.

114
00:06:54,137 --> 00:06:59,550
Daniel: Each channel is shared by the two people who opened it, and the network is just all those channels put together.

115
00:07:00,130 --> 00:07:04,230
Ryan: So say I actually wanna pay the bakery this way. Where do I even start?

116
00:07:04,690 --> 00:07:08,803
Daniel: You need a wallet, which is just the app you use to send, receive and hold bitcoin.

117
00:07:08,803 --> 00:07:13,510
Daniel: For Lightning it has to be one that supports it, and you'll probably see amounts shown in sats.

118
00:07:14,070 --> 00:07:15,670
Ryan: Sats? What are those?

119
00:07:16,530 --> 00:07:24,610
Daniel: It's short for satoshis, which are the smallest pieces of a bitcoin. One bitcoin is a hundred million sats.

120
00:07:25,170 --> 00:07:27,230
Ryan: So it's basically the small change.

121
00:07:27,930 --> 00:07:33,110
Daniel: Very small change, yeah. It means you can price a sandwich without a long line of zeros after a decimal point.

122
00:07:33,670 --> 00:07:35,730
Ryan: Wait, so sats are, what, Lightning's own coin?

123
00:07:36,370 --> 00:07:37,998
Daniel: No, that's an easy one to mix up.

124
00:07:37,998 --> 00:07:42,092
Daniel: Sats are just bitcoin in tiny pieces, and Lightning doesn't have a coin of its own.

125
00:07:42,092 --> 00:07:46,630
Daniel: What you're sending is bitcoin, it just doesn't go through the main chain every single time.

126
00:07:47,410 --> 00:07:49,410
Ryan: So if someone's selling a Lightning coin...

127
00:07:49,810 --> 00:07:51,393
Daniel: Then that's something else entirely.

128
00:07:51,393 --> 00:07:56,230
Daniel: But there's a bigger choice to make before you pay anyone, and it's about who's actually holding your bitcoin.

129
00:07:56,810 --> 00:07:58,070
Ryan: Like the app, or me?

130
00:07:58,730 --> 00:07:59,326
Daniel: Pretty much.

131
00:07:59,326 --> 00:08:06,430
Daniel: 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.

132
00:08:07,030 --> 00:08:08,490
Ryan: And if I'd rather not trust anybody?

133
00:08:09,290 --> 00:08:13,615
Daniel: Then you keep full control, and nobody else can freeze your bitcoin or take it away.

134
00:08:13,615 --> 00:08:16,910
Daniel: But it's on you to back up the wallet and keep that backup safe.

135
00:08:17,670 --> 00:08:19,590
Ryan: So it's convenience versus control, basically.

136
00:08:20,150 --> 00:08:22,650
Daniel: That's the trade-off, and neither one is right for everybody.

137
00:08:22,650 --> 00:08:25,190
Daniel: It really depends on the person and what they're using it for.

138
00:08:25,910 --> 00:08:27,830
Ryan: So I'm at the counter, then what?

139
00:08:28,390 --> 00:08:34,925
Daniel: The bakery creates a request for the amount, called an invoice, and it usually shows up as a QR code on their screen.

140
00:08:34,925 --> 00:08:38,890
Daniel: You just open your wallet, scan the code, check the amount and confirm.

141
00:08:39,610 --> 00:08:41,590
Ryan: So kind of like tapping a card.

142
00:08:42,410 --> 00:08:44,227
Daniel: Similar idea, yeah, with one difference.

143
00:08:44,227 --> 00:08:48,452
Daniel: An invoice only works for a limited time, so you can't save one and pay it whenever you like.

144
00:08:48,452 --> 00:08:49,770
Daniel: You'd just ask for a new one.

145
00:08:50,250 --> 00:08:51,070
Ryan: Got it, makes sense.

146
00:08:51,650 --> 00:08:52,973
Daniel: Now, it's not all smooth.

147
00:08:52,973 --> 00:08:58,161
Daniel: There's one bit that's a lot less obvious, and it goes back to the pot you share with your friend.

148
00:08:58,161 --> 00:09:00,490
Daniel: You can only send what's on your side of it.

149
00:09:00,830 --> 00:09:03,190
Ryan: Well sure, otherwise it's not my money.

150
00:09:03,810 --> 00:09:07,774
Daniel: Right. But it works the other way too. To receive, there has to be room on her side.

151
00:09:07,774 --> 00:09:11,550
Daniel: If the whole pot already belongs to you, she can't pay you through that channel.

152
00:09:12,310 --> 00:09:15,030
Ryan: Wait, so I could have money in there and still not be able to get paid?

153
00:09:15,850 --> 00:09:20,889
Daniel: Through that channel, yeah. What's on your side is how much you can send, not how much you can receive.

154
00:09:20,889 --> 00:09:24,460
Daniel: So a bakery that mostly gets paid needs plenty of room on the other side.

155
00:09:24,460 --> 00:09:27,150
Daniel: And all of that assumes your phone is even switched on.

156
00:09:27,670 --> 00:09:28,550
Ryan: Wait, why would that matter?

157
00:09:29,050 --> 00:09:33,288
Daniel: If you run your own channel, your wallet needs to be connected to send or receive.

158
00:09:33,288 --> 00:09:37,630
Daniel: So if your friend tries to pay you back while your phone's off, it won't go through.

159
00:09:37,790 --> 00:09:39,830
Ryan: Which is a lot to ask of a phone.

160
00:09:40,610 --> 00:09:42,790
Daniel: Yeah, and that's why some apps use a service provider.

161
00:09:42,790 --> 00:09:47,030
Daniel: It's a company that keeps the channels running in the background, so you don't have to run them yourself.

162
00:09:48,290 --> 00:09:50,370
Ryan: And big amounts are a different story, I'd imagine.

163
00:09:50,950 --> 00:09:55,056
Daniel: Not really what it's for, no. Lightning is built for small, frequent payments.

164
00:09:55,056 --> 00:10:00,110
Daniel: For big amounts, or savings you plan to keep for years, people still tend to use the main chain.

165
00:10:00,630 --> 00:10:02,190
Ryan: Where the fee doesn't matter as much.

166
00:10:02,790 --> 00:10:03,450
Daniel: Right, exactly.

167
00:10:04,170 --> 00:10:06,750
Ryan: I mean, eventually Lightning just replaces the main chain, right?

168
00:10:07,270 --> 00:10:10,183
Daniel: It can't, actually, because Lightning is built on top of it.

169
00:10:10,183 --> 00:10:16,350
Daniel: Every channel starts and ends there, so without the main chain there's nothing to lock up and nowhere to write the final split.

170
00:10:16,990 --> 00:10:19,150
Ryan: So it's more of a partner than a replacement.

171
00:10:19,750 --> 00:10:22,210
Daniel: Pretty much, yeah. They just do different jobs.

172
00:10:23,050 --> 00:10:27,767
Ryan: So back to the coffee. Next time she grabs one, I'm not waiting an hour. We just shift the split.

173
00:10:27,767 --> 00:10:32,290
Ryan: And if it's the bakery, it hops through someone else's channel, usually for less than a cent.

174
00:10:32,830 --> 00:10:37,505
Daniel: That's it. And the main chain's still there underneath, for the big, permanent stuff.

175
00:10:37,505 --> 00:10:40,750
Daniel: Lightning just handles the small, everyday payments on top.

176
00:10:41,850 --> 00:10:43,361
Ryan: And that's all for today.

177
00:10:43,361 --> 00:10:49,830
Ryan: You'll find more guides at bitranked.com, and as always, this is general information, not financial advice.

178
00:10:50,430 --> 00:10:50,930
Daniel: Thanks for listening.