Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Bitcoin, Explained — The Technical Side of Bitcoin

Bitcoin, Explained — The Technical Side of Bitcoin artwork

Episode 90: Asynchronous Lightning Payments

Feb 23, 202437 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode of Bitcoin, Explained, Aaron and Sjors are joined by Breez developer Jesse de Wit to discuss asynchronous lightning payments. They explain why such payments would be useful, how they would work, and what building blocks are required to realize it. In the process, Aaron, Sjors and Jesse also cover the basics of PTLCs and Trampoline Payments. Chapters 00:00:00 Opening and CoinKite sponsor 00:00:54 Jesse de Wit and Lightning development 00:03:45 Why Lightning needs asynchronous payments 00:10:40 Reusable invoices and PTLCs 00:17:14 Holding payments and coordinating with onion messages 00:23:42 Trampoline payments and routing retries 00:27:59 Dependence on Lightning service providers 00:30:02 Implementation prerequisites and timeline 00:34:27 Upgrade concerns and onion-message tradeoffs === This episode’s sponsor: ⁠⁠CoinKite⁠⁠, maker of the ColdCard Jesse’s Twitter: @WitDeJesse Jesse’s Nostr: npub18hwpk5qep3ptnmzatq22ptwr9mth7ccrku56rdntwpxjxlkfyr2qrav8du Aaron’s Twitter: ⁠⁠@AaronvanW⁠⁠ Aaron’s Nostr: npub1art8cs66ffvnqns5zs5qa9fwlctmusj5lj38j94lv0ulw0j54wjqhpm0w5 Sjors’ Twitter: ⁠⁠@provoost⁠⁠ Sjors’ Nostr: npub1v25jqj332n630klwtqeqxgyrjl4alw4phmluhu2x6lcxzwy9m03suqexw3

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

Aaron van WirdumLive from Utrecht, this is Bitcoin.

Sjors ProvoostExplained.

Aaron van WirdumSjors, I have a problem.

Sjors ProvoostYou have a problem?

Aaron van WirdumI have Bitcoins laying around everywhere. Bitcoins on exchanges, Bitcoins in hot wallets, Bitcoins in paper wallets,

Sjors ProvoostBitcoins in ETFs.

Aaron van WirdumIs there a safe place to store my Bitcoin, Sjors?

Sjors ProvoostThere might be, because we have a sponsor, and they're called Coinkite.

Aaron van WirdumAnd they produce the COLDCARD, I heard.

Sjors ProvoostThat's right.

Aaron van WirdumA hardware wallet for your Bitcoins.

Sjors ProvoostAnd it supports PSBT, partially signed Bitcoin transactions.

Aaron van WirdumGreat. Okay, Sjors and dear listener. So we've been getting requests over the past years, basically to sometimes make more Lightning-specific episodes.

Sjors ProvoostIndeed. Although we know that Lightning is dead.

Aaron van WirdumIs it?

Sjors ProvoostThat's what Twitter says.

Aaron van WirdumWhat do they say? Why is it that?

Sjors ProvoostI don't know.

Aaron van WirdumI used it today. It worked. It worked for me.

Sjors ProvoostOkay.

Aaron van WirdumGood. So the request is to make Lightning-specific episodes sometimes. However, Sjors and I both kind of feel out of our depth when it comes to at least more advanced Lightning topics. We've discussed this in the episode before where you can really sort of see that the development communities of Bitcoin and Lightning are kind of starting to separate a bit, specialize a bit. There's overlap, obviously, but there's definitely sort of more. Bitcoin-focused, you

Aaron van Wirdumknow, technological experts and developers and those that focus more on Lightning. But we do want to incorporate more Lightning topics in our episodes. So we're happy that today we have a special guest. Jesse.

Jesse de WitGood to be here.

Aaron van WirdumHow are you, Jesse?

Jesse de WitGood, good.

Aaron van WirdumNow, who are you?

Jesse de WitWho am I? I'm a Lightning developer, and I work for Breez. My name is Jesse de Wit.

Aaron van WirdumJesse de Wit.

Jesse de WitJesse de Wit. It's an impossible name to pronounce in English.

Aaron van WirdumI just did pronounce it in English. Anyways, never mind. Move on.

Jesse de WitOkay. Yeah, so I work on Lightning for Breez, mostly working on Lightning service provider stuff and also Breez SDK. And yeah, I'm quite well read into the Lightning specifics these days.

Aaron van WirdumAwesome. Yeah. So thanks a lot for coming on. So yeah, we had sort of a list of Lightning topics that we wanted to cover at some point. And earlier this week, we read this list to you. And the one that sort of sprung out for you to cover is asynchronous payments.

Jesse de WitExactly.

Aaron van WirdumAnd the nice thing about that is you mentioned if we... cover asynchronous payments, then we sort of at the same time also tackle two other topics that were already on our list that we can sort of all wrap into one episode, basically, because it sort of supports each other, right?

Jesse de WitYes. Yeah, and we'll touch on the topics later on, I suppose, when we cover async payments.

Aaron van WirdumYeah, well, I'll spoil this. So the other two that we're sort of going to touch on are PTLCs, and trampoline payments are also gonna…

Jesse de WitYes, we'll touch on them, uh briefly. We'll not go into depth, like exactly how they work, but uh yeah, they definitely are necessary for asynchronous payments.

Aaron van WirdumOkay, awesome. So asynchronous payments I guess the first the starting point is what is it or maybe why is it needed like what are we talking about?

Jesse de WitYeah, so in the Lightning network um if Alice is trying to pay Bob They both have to be online at the same time in order for a Lightning payment to settle. And users are just not used to that these days anymore, right? People use texts and every communication now happens asynchronously. So in Lightning payments, users just expect it to work asynchronously as well.

Sjors ProvoostAnd in Bitcoin, they're also used to... payments being asynchronous, right? You have an address, you send money to it whenever you want.

Jesse de WitExactly, yeah. So you don't have to be online at the same time for that.

Aaron van WirdumYeah, so to give a very concrete example of something that happened to me this week and also allows me one more option to show my book.

Sjors ProvoostThat's all right.

Aaron van WirdumYeah, so someone wanted to buy the Genesis book from me, like an autographed version, and then he emailed me and he wanted to pay in Lightning. And I said, yeah, sure, that's fine. And then I sent him back, using the Breez wallet actually, a Lightning address. But obviously then I have to keep my wallet open and I don't know for how long before he's going to make the payment. So that kind of stuff is just very complicated with Lightning. So in the end, I sent him an on-chain address because that way he can just send whenever he wants. So essentially that is what we, you Lightning developers, are trying to achieve

Aaron van WirdumWith Lightning as well, you can send an invoice that can be paid at any point. Is that even the right way of framing it?

Jesse de WitYeah, so maybe you can walk into the problem that you had first because, well, first of all, your app has to be running. It needs CPU time in order to sign messages for receiving the Lightning payment.

Sjors ProvoostAnd it needs to receive data, right?

Jesse de WitYeah, it needs to receive data and it needs to sign messages, exactly. So if you're not online, well, you won't be able to do that, and so you won't be able to receive the payment. But if, let's say, Alice is trying to send a payment and she's sending it to you, then Alice is going to find a route over the Lightning Network. And a naive thing you could try to do is just the last hop, which for you was the Breez LSP, Breez Lightning

Jesse de WitService Provider, which is the node that you are connected to. could hold the payment until you come online and then forward the payment to you. That would be a naive approach in trying to solve that Alice and you don't have to be online at the same time.

Aaron van WirdumAnd it's naive, I would assume, because in that case, Breez can steal my money?

Jesse de WitNo, it definitely [unclear] steal your money. But the problem is we're locking liquidity in the network right now if we do this. So because Alice is her payment, maybe we can explain a little bit what a Lightning payment is first. So first you allocate, you find a route through the network. So you go, yeah, you find a path over different nodes, over different channels. And then when sending a payment, first you're going to allocate liquidity in each

Jesse de Witof these channels that's sort of locked. until you get the pre-image back that comes from you whenever you settle the payment. Pre-image comes back to Alice, and only then are the funds released.

Sjors ProvoostYeah, so I guess another way to describe it is there's a secret at the end of the tunnel, essentially. So the payee, the person receiving the payment, has a secret. and the person making the payment has to allocate liquidity, and then every hop does the same thing, and then the last hop gets the secret, and then sends it back to the payer. So there's information that goes from the sender to the recipient, and then this information has to go back from

Sjors Provoostthe recipient to the sender. And as long as that information has not made the full return trip, the liquidity is locked up all over the channel.

Jesse de WitYeah, so all over the network, the liquidity will be locked. And well, that's something we don't want in the Lightning Network. Usually when a payment is happy, in a happy flow, these payments settle within a second, right? But if you just turn your phone off for a day, then liquidity is suddenly locked for an entire day.

Aaron van WirdumWhy is this a problem?

Jesse de WitYeah, it's a problem because of that feature I just described. Yeah, you would expect the liquidity to settle very quickly over the Lightning Network. So if you lock this liquidity for a long time, you're locking it in multiple channels as well. So the amount of your payment is locked over multiple channels. you exponentially degrade the ability of the Lightning Network to be able to forward payments this way.

Sjors ProvoostIt basically means you need bigger channels, right? Because if you're only using channels one second at a time, then maybe a one Bitcoin channel is enough. But if that one Bitcoin is just locked up for two weeks, then you need a much bigger channel.

Aaron van WirdumOkay, and just from my understanding, is this the only problem we're trying to solve? Let's say we would all use bigger channels. Would that just sort of also solve the problem in that sense?

Jesse de WitNo, if people start sending more payments, then bigger channels are no longer an option anymore. Or no longer work.

Aaron van WirdumOkay, and is this... Is this the problem we're trying to solve or are there other problems involved as well?

Jesse de WitYeah, so there's two aspects of this. One of them is that we don't want to lock this liquidity in the network while the payment is in flight. And the other one also has to do with the invoice generation. Because Alice and Bob presumably are not online at the same time, they maybe won't exchange an invoice. So Alice needs a way to statically create an invoice.

Sjors ProvoostRight, because an example of your book, you created an invoice, but only once you saw the email. So whoever wanted to buy the book had to wait for you to do that. And it'd be better if the person who wants to buy the book does not have to wait for you to make an invoice. But then the problem is that standard Lightning invoices, the BOLT 11 format, you can pay them once. So you can make an invoice and say, well, whoever is the first person to buy my book paid this invoice. But now if you want to scale that and you want to sell multiple books, well, you probably have to make multiple invoices and put them on

Sjors Provoostyour website and tell people to pick which one. I don't know.

Aaron van WirdumOkay, so let's cover that problem first. I need a way to sort of automatically generate invoices even though my phone is switched off, I guess.

Jesse de WitYeah, so if you would currently create a BOLT 11 invoice, which is the invoice format we use on the Lightning Network today, If you get that invoice paid, then you release the pre-image, which is your secret, which is the payment secret. And so nobody else will be able to pay that again because an intermediate node would be able to intercept. your payment and settle the payment without the payment ever arriving to you because he already knows the secret.

Aaron van WirdumYeah, the secret can only be used once for one payment flow, essentially.

Jesse de WitYeah, so the secret can only be used once, which means the invoice can only be used.

Aaron van WirdumAnd this is a secret that I'm generating on my Breez wallet app.

Jesse de WitYeah, basically a random number.

Aaron van WirdumYeah.

Jesse de WitSo first we need to tackle that. And the best way to do that is to create an actually a static invoice, which would be reusable. So you could just post that on your website, say, well, a book costs this and this much money. And senders would be able to pay to this invoice an infinite amount of times. And for that we... We need a different model, and this different model works with PTLCs. So currently, the way we described, you've

Jesse de Witgot a secret, and this secret is hashed into the invoice, and then HTLCs are sent over the Lightning Network. I think you've covered this in Lightning episodes.

Sjors ProvoostWe have previously tried to explain, but we generally also explained what hashes are.

Aaron van WirdumWe definitely had a basic Lightning explainer episode at one point, and I'm sure we must have covered this, yeah. It was a couple of years ago, so I don't remember exactly, but presumably, yes.

Sjors ProvoostBut the hash of the secret, that's what you're sending to the other side, and the other side says, please give me the secret that belongs to this hash, and that's really the message you're forwarding along all these channels.

Aaron van WirdumRight, so that's called an HTLC. So what is a PTLC?

Jesse de WitYeah, it's basically sort of the same construct, only instead of having a pre-image and a hash, you have a private key and a public key, which is called a payment point. And that's why it's called a point time lock contract. So it's not a hash time lock contract, but a point time lock contract. And the trick with these public keys is that you can tweak them. And you can basically derive as much keys as you want from a single public key,

Jesse de Witwhich you can make an infinite amount of secrets from.

Sjors ProvoostYeah, one of our very first episodes talked about Taproot and why Taproot is so cool. And one of the aspects of it is that it's very easy to add a number to a private key and then add essentially the same number to the public key.

Aaron van WirdumWell, that's Schnorr, basically, right?

Sjors ProvoostYes, and that's already possible with the CDH, but it's just much, much easier with Schnorr. And this PTLC construct makes use of that. The ability to add some random number to a private key, and the other side can do that to the public key. So even if you don't have the public key, you know how to tweak it. And you cannot do that with hashes. Because if it hashes, if you take the letter A, For example, when you hash it, you get some large number. Then if you say, oh, I'm just going to change A to B, well, the other side has no idea. You

Sjors Provoostcannot just take the hash of A and then take the hash of B and add them together. That's not going to give you the same result.

Jesse de WitYeah, so it does work with points, with payment points. And so what a sender can do is it's going to, for each intermediate hop, generate a different secret, basically. So each intermediate hop is going to think that it's a different secret than the one the recipient actually created. So each intermediate hop won't ever learn the actual secret from the payee.

Sjors ProvoostBut how does that work if you're making two payments through the same route? Because what is it that makes the second payment different from the first payment?

Jesse de WitSo the trick is that Alice, which is the sender, she generates a random number as well, which tweaks the public key. And the intermediate nodes, they use this tweaked public key in order to learn the secret, basically.

Sjors ProvoostYeah, so it's never the same secret.

Jesse de WitIt's never the same secret, and not for any intermediate hop as well.

Sjors ProvoostYeah. So even if two different people make a payment, the sender picks the random number, so the recipient doesn't have to do anything. As long as each sender picks a random number, they cannot reuse the same secret.

Jesse de WitYeah, and it's in the best interest of the sender to pick a random number then, because it's his payment that will be stolen otherwise.

Aaron van WirdumOkay, so in this case, I'm trying to sell the Genesis book to someone, so I got to generate an invoice. who's generating, where does this generation happen? What happens exactly?

Jesse de WitYeah, so you create an invoice and it's got a payment point inside of your invoice and you just put that up on your website. I'm a sender, I scan your invoice and I'm going to tweak your payment points with random numbers along the route so nobody learns about the actual secret when the secret comes back to the sender.

Aaron van WirdumRight. Okay, got it. That part makes sense to me.

Sjors ProvoostSo that removes the interactivity from you having to make an invoice. But in this scenario, you're still online because you are clearly receiving the payment and sending back the secret every time somebody makes a payment.

Aaron van WirdumYeah, so that was the second part of the problem I think we're trying to solve, right? Now my phone is, you know, I emailed this guy back or whatever. My phone is switched off and now I still need to receive. the payment without locking these funds along all these channels because that screws up.

Sjors ProvoostSo your friend has downloaded the invoice from your website instead of having to send you an email. But in this, so far, we've still reached the point where, okay, they don't have to email you anymore. They just make the payment, but your wallet still needs to be online to receive the payment.

Aaron van WirdumYes. Okay, so how do we solve this problem, Jesse?

Jesse de WitOkay, let's go over how async payments works then. So Alice is going to pay Bob and Alice is going to be connected to the Lightning Network through a Lightning service provider. And Bob is going to be connected to the Lightning network through a Lightning service provider. Where a Lightning service provider is basically just a node that you're connected to the Lightning network. And this node is well connected to the Lightning network.

Aaron van WirdumYeah, so the concrete example here would be, for example, Breez I think, right? Like my wallet is not a full node. It just connects to Breez's full node.

Jesse de WitYeah. And Breez's full node is tolerant of you being offline a lot, which is why we call this a Lightning service provider. But it could basically be any node that's tolerant to that. And what Alice is going to do, it's going to send the payment to Bob, but it's going to tell her LSP, please hold this payment.

Jesse de Wituntil you receive a message that you can release it.

Aaron van WirdumShe's telling her own LSP that.

Jesse de WitShe's telling her own LSP that. And the reason she does that...

Aaron van WirdumOtherwise, it's a regular Lightning payment with a PTLC then. It's normal. She just says to her own service provider, don't send this yet.

Jesse de WitYeah, exactly. And this message is inside the payment itself. So basically, it's a regular Lightning payment.

Sjors ProvoostAnd so at this point, Alice's LSP cannot steal the money, right? It's not that she's making a payment to her LSP. She is doing the first step of the payment, which is giving the pre-image. No, not the pre-image, giving the point. basically the public thing of the secret to her payment provider who cannot take the money unless they get the secret. And in order to get the secret, they have to forward it. But all Alice is doing is saying, oh, wait a minute, don't forward it just yet because Bob might not be online.

Jesse de WitExactly. So we know the reason why she— why the LSP is not forwarding it. And what Alice is going to do as well... She's going to send an onion message to Bob saying, hey, there's a pending payment here. If you want to release that whenever you're online, send a message back along this path over here. And there's an encrypted path inside this message as well.

Aaron van WirdumWhen you say onion message, what do you mean by that?

Jesse de WitAn onion message is, so over the Lightning Network, we route payments over onions as well, basically meaning that every hop, where this message is routed over, is encrypted. So it sort of becomes an onion of encryption, where onions have layers.

Sjors ProvoostSo every point in a route can only see which point is coming next or which node is coming next and which node came before it, but cannot see further. In either direction. Which we explained a bit in our episode about BOLT 12.

Jesse de WitYeah, and you can basically send arbitrary messages over this construction, over the Lightning Network then. Right. And she's going to send this to Bob and with a reply path then to her LSP. So Bob will be able to unlock the payment so it actually becomes forwarded. But Bob is offline, of course. So the LSP of Bob will hold this Onion message until Bob is online. Right? Because the LSP knows, well, I have to forward this to Bob. Bob is not there. So I'm just going to wait until Bob is online.

Aaron van WirdumRight.

Sjors ProvoostAnd the LSP cannot read what is in the message. Just knows, like, I have a message for Bob. I don't know where it came from, but I'll give it to Bob when Bob is online.

Aaron van WirdumYeah, and in this case, it's obviously not a problem because no funds are being locked up. It's just a message.

Jesse de WitYeah.

Sjors ProvoostYeah.

Aaron van WirdumOkay, so that's the onion message. Goes first to Bob's service provider, and he will forward that to Bob. Bob's gone online. Bob comes online, turns his phone on. or Breez app or whatever Lightning app he has sees this message, or probably his wallet just responds to the message, I would assume.

Jesse de WitYeah, yeah, yeah.

Aaron van WirdumHe doesn't have to actually see it.

Jesse de WitYeah, this all goes automatic, but we will say that his wallet sees the message and then is going to reply over that reply path. So he doesn't really know where the message is coming from. He just knows that he has to send an onion message there in order to unlock it. And then, so Alice's LSP, who's still holding that payment right now, By the way, Alice, after she sent the onion message to Bob, was able to go offline. She could put her phone back in your pocket. It's an important part that

Jesse de Witthey don't have to be online at the same time.

Aaron van WirdumYeah, because Alice's LSP now has the money in a way.

Jesse de WitYeah, has the money in a way. And now, so we're now at the point where Alice's LSP received the onion message from Bob saying, please forward this payment. Then the LSP forwards the payment to Bob, and Bob is online now. So he's able to settle the payment. So he's going to release the pre-image. The pre-image goes back all the way to Alice's LSP. And Alice's LSP, whenever Alice comes online, is able to settle the last piece

Jesse de Witbetween her and Alice. Because only her channel with Alice is now still in a state where funds are... In Limbo.

Aaron van WirdumRight.

Sjors ProvoostYeah, so I guess the only player in this story that needs to hold funds in Limbo in a channel longer than you'd normally want to do is the channel between Alice and her Lightning service provider. So obviously the Lightning service provider will want to be compensated for that in a way. But if Alice is a mobile node, then that money is probably going to be stuck, kind of stuck anyway, because if she's not online, they can't route through it and she probably doesn't have any other channels. It's not a routing node anyway.

Jesse de WitAnd LSP will already allocate liquidity towards these users. So I don't think there will be any specific compensation for this, just probably for the fact of being a Lightning service provider and allocating liquidity. Maybe you'll pay something for that.

Aaron van WirdumWe promised, or I promised, that we would also cover trampoline payments. Where does this come in?

Sjors ProvoostIn some situations, it would just work this way, right?

Jesse de WitIn some situations, it would just work. But there is actually a problem, because if Alice finds a route for this payment over the Lightning network to Bob, Usually in Lightning, what happens is you find a route, you try the route, and then somewhere along the route, Either a node is offline or doesn't have enough liquidity. And this route fails. And what your node is going to do is going to find another route.

Sjors ProvoostAnd this is also, by the way, where I'd like to shill the episode with Rene Pickhardt we did a few years ago. Explaining sort of his pathfinding optimal way of making payments. But it also involves lots of attempts. Yeah, quite a few attempts to get a payment through. It's by design, there's some privacy in the Lightning Protocol, so you don't know exactly how much room there is in all the channels along the route. You know how big the channel is, but you

Sjors Provoostdon't know where the money is in that channel, so you don't know how much you can actually send through it. And this changes every time as well.

Aaron van WirdumThat was a short special, I believe, right?

Sjors ProvoostYes.

Aaron van WirdumBut you don't know the episode, I'm sure?

Sjors ProvoostNo.

Aaron van WirdumOkay.

Jesse de WitOkay. Yeah, so Alice, if she created this first route and this route fails, that would mean that she would only retry whenever she comes back online again. You don't know when that is. So what Alice can do is she can delegate the pathfinding to another node. And this is a feature in the Lightning Network that's being implemented in several node implementations. ACINQ already uses it, and it's called Trampoline Payments. So basically, Alice is going to ask

Jesse de Wither LSP, please, I want to forward this payment to this direction. Please, do you find the best path over the Lightning Network? And I'm just going to chill and go offline now.

Sjors ProvoostYeah, and so this works by providing a carte blanche in terms of fees, right? Because normally when you establish the route, you know exactly how much fees you need to pay at every hop. But because you're not establishing the route, you're just going to say, well, here's 100 sats. You figure it out. And if you find a cheaper route, you keep the change.

Jesse de WitExactly, yeah. So you give them some kind of margin. And it could be a competition for trampoline nodes as well to say, well, I'm the cheapest because I know how to find the best routes in the network.

Sjors ProvoostExactly, like the London taxi drivers that have the knowledge and they can find the shortest route through London without a GPS and they usually are actually faster than the Uber drivers that just follow Google Maps, according to legend.

Jesse de WitSo Alice's LSP is now able to retry this payment whenever it fails, and so would be able to reach Bob, hopefully in a timely manner, before Bob goes offline again.

Sjors ProvoostAnd so this ingredient is useful, like we said, because the Lightning network changes all the time, you need to do multiple attempts, and so this trampoline router can just try it multiple times, basically. The downside, of course, is privacy. Because the trampoline now knows where the payment is going.

Jesse de WitYes. So the first part of this is Bob in his invoice could have created a blinded path. So that's one part of this where the intermediate node would not actually find the destination, right? The trampoline node would not find the destination. And another way to deal with this is to select multiple trampoline hops. in your route so we're now using one trampoline

Jesse de Witnode So Alice's LSP is going to find different routes, but you could tell Alice's LSP, so first find a route to this random trampoline node, then find a route, then that trampoline node has to find a route to that random trampoline node. So you could, if you value your privacy, you could diffuse the pathfinding a little bit that way.

Aaron van WirdumOkay, I guess one maybe concern that sort of comes to my mind. but I'll let you address that, is it sort of sounds like this would make Lightning users very dependent on service providers. Sjors mentioned that they're also more general risk, and I'm asking if it works for a Lightning service provider, but is this a reasonable concern in your view, or in Sjors's view maybe? But let's hear from Jesse first.

Sjors ProvoostYeah, from my point of view, it depends on how...

Aaron van WirdumSjors. I said, let's hear from Jesse first.

Sjors ProvoostOkay.

Jesse de WitWell, okay. So there's a user that apparently… online Lightning node, right? So he wants to run a Lightning node in his pocket. So that means there's no other way in network through nodes that are willing to accept that.

Sjors ProvoostAnd as a reminder, why [unclear]? If you have a channel, But you're offline all the time. Now, if you channel and all the money in the channel is on your own side then the other side is not going to care but if you have made like lots and lots of payments to the channel, now the money is on the other side. The other side is going to be annoyed by this because when you're offline, they cannot access that money at all. They can't it— but they have to

Sjors Provoostforce close it which is expensive. They can't route anything through it because you're offline. You're not a routing node so that money is just they own it, but they're forced HODLing it essentially. And so not everybody's going to be willing to just allow you to open a channel and behave like that. I think right now many nodes don't care, but they might close the channel on you saying, hey, this is not making me enough money. So a Lightning service provider in the very broad sense is anyone who's willing to just put up with a peer that's not online all the time, probably by charging.

Aaron van WirdumYeah. How far is this?

Jesse de WitSo there's a lot of prerequisites. So first of all, we need Taproot channels in order to... Taproot channels are an LND-implemented simple Taproot channels protocol, which sort of works with private channels right now, but not with public channels. It's basically the, so Lightning channels are basically just commitment

Jesse de Wittransactions on chain, right? But you update them locally and you broadcast, don't broadcast many of these that you sign in between in your channel. And these transactions are tap transactions. So that's basically what a Taproot channel is.

Aaron van WirdumOkay. So it's pretty much what it sounds like.

Sjors ProvoostAnd that's just the main transaction, but then there's the HTLCs, the things that fly over the channel when you're making a payment, to make those PTLC. Another change, right? You can have Taproot channels that still use locks for the payments.

Jesse de WitYeah, and also if you use Taproot channels, you need to gossip your channel, so you need to tell the rest of the network, like, these are the channels that I have. This also does not exist yet. So there are some prerequisites there on the side. And then there is a proposal now for holding the payment, which is one part of async payments, where the LSP holds the payment until a

Jesse de Witmessage is sent when it's released.

Sjors ProvoostAnd this standard is within the protocol itself. So it's not like some custom API of the Lightning service provider. It's really just part of the Lightning protocol. Anybody who speaks to Lightning Protocol could hold a payment.

Jesse de WitYeah, so it would be the question where this ends up exactly. BOLTs, which is a Lightning improvement proposal, but bLIPs, can also be implemented by any node, basically. So there's that part, which are currently only supported by CLN in

Jesse de Witorder to be able...

Sjors ProvoostBecause onion messages [unclear] BOLT 12, right? We just made— we did a whole episode about BOLT 12, but we explained how onion messages are kind of useful in that scheme, but BOLT 12 is mostly being pushed by Core Lightning and I guess LDK now, and so you have to wait for— I guess you just need two implementations, but in order for it to be useful it's nice if LND supports it because like a whole bunch of nodes are running LND, in— the onion message needs to go from A to B through all these hops.

Sjors ProvoostI think onion messages can follow any route you like, right? They don't have to follow any channels that exist. They can just go through any way through the network.

Jesse de WitYeah, I guess they sort of could, but you only know that people are connected through their channels usually.

Sjors ProvoostRight, yeah, yeah, yeah. So it has to follow some bunch of channels, and if all these nodes are running LND in the middle, then you just don't have a way to get your message to the other side.

Jesse de WitYeah. So I think we probably talked about most of the prerequisitions.

Sjors ProvoostTrampoline?

Jesse de WitYeah, so trampoline. Yeah, exactly.

Sjors ProvoostThat's done by the ACINQ people. That's used by Phoenix. Yeah, by the ACINQ people.

Jesse de WitAnd there's so LDK also implemented parts of it. I don't think they completed trampoline payments completely. Please correct me if I'm wrong there. So that's also not part of the BOLT spec yet. It's not merged into the spec yet.

Aaron van WirdumOkay, so basically there's still a bunch of building blocks that need to be in place before this can work. And different implementations are in different stages of completing these building blocks.

Jesse de WitYeah, so it's basically almost every improvement to the Lightning Network that we want to have is sort of a prerequisite for async payments.

Sjors ProvoostSounds easy. Two weeks.

Jesse de WitYeah. No, it's not going to be two weeks, but more like several, several years.

Aaron van WirdumIs anyone against this?

Jesse de WitIs John [unclear] against async payments?

Aaron van WirdumHe's against everything, so I'm assuming. Are there people against this? Is this like in any way controversial or are there concerns about this? Or maybe there are people that have, you know, developers that have different preferences or is there?

Jesse de WitThe people may be against some parts of the upgrades. I'm not exactly sure about their reasoning, but one reason I can come up with is that Onion messages, they can also be a DoS factor.

Aaron van WirdumI thought Laolu basically came up with that. Am I misremembering that?

Jesse de WitI don't know about this exactly.

Aaron van WirdumOkay, well, never mind. Okay, so they might be against onion messages, or are they against onion messages? Yeah, you think so.

Jesse de WitWell, they're not implementing it. They do have LNDK, which is sort of like an extension to LND, which does support onion messages.

Sjors ProvoostI mean, sometimes, most of the time when somebody doesn't implement something, it's just because they don't have time for it, because they're working on 6,000 other things that have that priority. It's not that they're opposed to it.

Aaron van WirdumRight. Okay, so as far as you know, there's not necessarily any opposition to asynchronous payments.

Jesse de WitNo, I don't believe so. No, I think this is just a great...

Sjors ProvoostYeah, and it's also a bit of a harm [unclear] thing because people like this ability to pay to a mobile client, and so there are already solutions out there that will just lock up all the liquidity.

Jesse de WitYeah, and that's evil.

Sjors ProvoostLots of problems, so it's one of those things where it might be better to implement it because the alternative is worse.

Aaron van WirdumRight. Okay. Does that cover it?

Sjors ProvoostI think so. You got it.

Aaron van WirdumAnything you want to [unclear]?

Sjors ProvoostWhere should people find you?

Aaron van WirdumYeah, that's a good one.

Sjors ProvoostShould people find you?

Jesse de WitPeople can find me on Twitter at @WitDeJesse.

Sjors ProvoostIn that case,

Aaron van Wirdum[unclear],

Sjors Provoostindeed, thank you for listening to Bitcoin,

Aaron van WirdumExplained.

Open the transcript file

Hosts and Guests

Hosts

  • Aaron van Wirdum Host Feed-stated
  • Sjors Provoost Host Feed-stated

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Episode 102: Bitcoin Core 32.1 — Live

    Nov 6, 202650 minVideo

    Aaron and Sjors discuss Bitcoin Core 32.1 and its updated security disclosure policy in this live conference recording, followed by audience questions. Links Bitcoin Core 32.1 release announcement and release notes...

    Listen to the audio

    Credit the people on this episode

  2. Episode 101: The COLDCARD Hack

    Aug 26, 20261 hr 6 minAudio

    Aaron and Sjors discuss the COLDCARD hack: the bug itself, how it could have happened, and some reflections on having had Coinkite as a sponsor. Note: If you’re using a COLDCARD and still haven’t moved your funds to a...

    Credit the people on this episode

  3. Emergency broadcast: COLDCARD vulnerability

    Jul 31, 20261 minAudio

    The COLDCARD hardware wallet has a critical vulnerability. If you are using the COLDCARD to store bitcoin, move them to a secure location as soon as you can. More information:...

    Credit the people on this episode

  4. Episode 100: Bitcoin Core 31

    Jul 15, 202641 minVideo

    Aaron and Sjors discuss what’s new in Bitcoin Core 31. Chapters 00:00:00 Episode 100 and Core 31 00:02:41 Cluster Mempool 00:10:45 Package Relay and Fee Selection 00:18:59 Private Broadcast over Tor 00:24:03 ASMAP and...

    Listen to the audio

    Credit the people on this episode

  5. Episode 99: Bitcoin Core 30

    Nov 6, 202551 minVideo

    Aaron and Sjors discuss what’s new in Bitcoin Core 30. Chapters 00:00:00 Release Overview and Controversy 00:04:58 OP_RETURN Policy Changes 00:12:32 Lower Minimum Relay Fees 00:23:06 Sigops Limits and Consensus Cleanup...

    Listen to the audio

    Credit the people on this episode