Bitcoin Optech #432 covers DCPP frameworks, Eclair DoS fix, Wavelength alpha, and LND bug fixes
Summary
The episode reviews decentralized mining pool payout frameworks like DCPP and PeterPool, highlighting efforts to improve transparency and prevent gaming. It details a critical DoS vulnerability in Eclair v0.14.0 and the release of Bitcoin Core privacy fixes and Testnet 5. Lightning ecosystem updates include the Wavelength alpha release by Lightning Labs, Bull Bitcoin's default PayJoin implementation, and significant bug fixes in LND regarding invoice settlement and sweep transactions.
Key takeaways
- 1 Disclosure of a DOS vulnerability in Eclair. This is a disclosure from a developer that goes by RORP, RARP, R O R P posting to delving Bitcoin about a bug that could let anyone connect to. an Eclair, specifically 0.14.0 node and crash it by running it out of memory. There wasn't any need for a channel. And I think I did articulate it's only that 0.14.0 because it was fixed in 14.1. So if you're on that 0.14.0, please upgrade. Um okay, so what what can the attacker do? The attacker can crash a node. There's no direct access to the bitcoins on that node, but of course, a lightning node has to be online to react to certain activity um on-chain. And so there's indirect loss of funds implications here if your node is down, of course.
Speaker 1 · 21:05
- 2 Core Lightning HTLC recovery tool requires local HSM secret and peer commitment points to recover outputs after state loss.
Speaker 3 · 57:11
Episode sections
- 0:00 – 21:00
Framework for decentralized mining pool payouts
Discussion of DCPP and P2Pool V2 solutions for coinbase payouts, addressing share trading and attacks like rich list attack and payment settlement griefing.
- 21:00 – 26:02
Disclosure of a DoS vulnerability in Eclair
Disclosure of memory exhaustion DoS in Eclair v0.14.0 due to missing lower-bound check on Bolt 12 batch sizes, fixed in v0.14.1.
- 26:02 – 32:52
Continued discussion of stale tip relay
Debate on BIP 332 regarding relaying stale block tips, with arguments for headers-only vs full blocks for bandwidth and reorganization speed.
- 32:52 – 36:10
PeterPool Mining Pool Payouts and Transaction Selection
Framework for decentralized payouts using Bitcoin headers and proposed validation rules to prevent fee rate gaming.
- 36:10 – 38:06
Liana v16.0 and Coldcard Firmware Updates
Liana v16.0 release with BIP 138 and Taproot default; Coldcard adds Codex32 backup support for Shamir shares.
- 38:06 – 44:05
Wavelength Mainnet Release and Bull Bitcoin PayJoin Default
Lightning Labs releases Wavelength alpha for AI agents; Bull Bitcoin defaults PayJoin for exchange orders via Bull Wallet.
- 44:05 – 48:47
Breez SDK, Electrum Silent Payments, and Stratum V2 Adoption
Breez SDK adds silent payment support; Electrum plugin SPscanD released; Stratum V2 reference implementation and miner adoption updates.
- 48:47 – 54:26
OpenSwap Renaming and Core Lightning 26.12rc1
CoinSwap renamed to OpenSwap with Electrum backend; Core Lightning 26.12rc1 introduces XPay and simple close support.
- 54:26 – 56:51
Bitcoin Core Privacy Fix and Testnet 5 BIP
Core PR #36757 fixes Tor/I2P privacy leak; BIP #2356 marks Testnet 5 deployment with actual genesis parameters.
- 56:51 – 1:09:28
Core Lightning HTLC Recovery and LDK Security Fixes
CL tool for HTLC recovery using HSM secrets; LDK fixes for premature acknowledgement, channel ID collisions, and fee overpayment.
- 1:09:28 – 1:11:04
LND #11555: AMP Invoice Settlement Logic
Fix for AMP invoice settlement introducing 'pending settle' state to ensure all HTLC parts reach final outcome.
- 1:11:04 – 1:12:13
LND #11551: Multipath Payment Expiry Validation
Fix to recheck expiry of previously accepted payment parts against current block height to prevent accepting expired payments.
- 1:12:13 – 1:15:01
LND #11472: Sweep Transaction Retry Logic
Fix to retry sweep transactions on temporary errors and remove bad inputs from batches to prevent poisoning.
- 1:15:01 – 1:17:41
LND #11542: Stranded HTLC Fixes
Fix for stranded HTLCs after channel reconnection due to indexing bugs and race conditions, preserving batch indexes.
Assets discussed
| Asset | Kind | Stance | Context |
|---|---|---|---|
| BitcoinBTC | crypto | neutral | So for example, when the 110 thing happened, then if we don't do things properly, then and this was Murch most actually pointed it out, and we have a solution now. So the the attack could be that they could be mind mining on one ten, but at the same time mining on Bitcoin as well. So we are subsidizing any earnings from Peter Pool while they're mining on one ten, especially when there's tail tips, right? On the two uh host on the on this hostile chain and on our chain. Um so what we the solution requires us to know is as to which which share is mining on which Bitcoin block, etcetera. The details are kind of hairy, but we end up right kind of building a similar overlay on top of Peterpool where we basically send the Bitcoin headers that we're kind of seeing so that, you know, everybody can verify that they're on the right chain. |
“Stance” is how the speakers talked about the asset, not a recommendation.
Claims worth verifying
PeterPool is building an overlay to send Bitcoin headers to verify chain validity and prevent stale tip issues.
Speaker 2 ·33:12
How to verify: Check PeterPool GitHub repository or official documentation for header relay implementations. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Transaction selection in PeterPool V2 is done by individual miners, and there are proposals to validate fee deltas between sent and received shares.
Unknown speaker ·34:48
How to verify: Review PeterPool GitHub issues or pull requests regarding transaction selection and fee validation. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Liana v16.0 writes encrypted descriptor backups in BIP 138 format and makes Taproot the default for new wallets.
Speaker 1 ·36:10
How to verify: Check Liana release notes or GitHub repository for v16.0 changelog. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Coldcard firmware adds support for Codex32 backups and Shamir shares.
Speaker 1 ·37:11
How to verify: Check Coldcard firmware release notes or official website. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Bull Bitcoin makes PayJoin the default for exchange orders, requiring the Bull Wallet for collaborative transactions.
Speaker 1 ·40:55
How to verify: Check Bull Bitcoin blog or release notes for PayJoin implementation details. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Marathon (Mera Foundation) mined its first block using Stratum V2.
Speaker 1 ·47:07
How to verify: Check Mera Foundation or Marathon mining announcements on X (Twitter) or their website. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Core Lightning 26.12rc1 introduces XPay as the preferred payment method, deprecating Pay in version 27.03.
Speaker 3 ·51:21
How to verify: Check Core Lightning release notes for 26.12rc1 and version 27.03 roadmap. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Bitcoin Core PR #36757 fixes a privacy leak where Tor/I2P peers could reveal a node's listening port.
Speaker 3 ·54:26
How to verify: Check Bitcoin Core GitHub PR #36757 for the fix details. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
LND marks non-AMP invoice parts as settled upon pre-image release, which is incorrect if parts haven't fully settled.
Speaker 3 ·1:09:44
How to verify: Review LND source code or release notes for PR #11555 to confirm the previous behavior of marking parts settled on pre-image release versus the new 'pending settle' state. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceLND fails to recheck the expiry of previously accepted payment parts when later parts arrive in multipath payments.
Speaker 3 ·1:11:24
How to verify: Review LND source code or release notes for PR #11551 to confirm the lack of re-validation of expiry for previously accepted parts. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceLND stops retrying sweep transactions if it encounters a temporary or unclassified error.
Speaker 3 ·1:12:51
How to verify: Review LND source code or release notes for PR #11472 to confirm the previous behavior of stopping retries on unclassified errors versus the new retryable treatment. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceLND previously allowed one bad input in a batch sweep to reject the entire transaction without attempting subsets.
Speaker 3 ·1:13:55
How to verify: Review LND source code or release notes for PR #11472 to confirm the previous behavior of rejecting the whole batch versus the new diagnostic transaction testing. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceLND had an indexing bug where skipping an acknowledged HTLC caused it to misidentify the index position of subsequent HTLCs.
Speaker 3 ·1:15:41
How to verify: Review LND source code or release notes for PR #11542 to confirm the indexing logic error during channel reconnection. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceLND had a race condition where incomplete batch records could cause it to discard future retries as duplicates.
Speaker 3 ·1:16:40
How to verify: Review LND source code or release notes for PR #11542 to confirm the race condition handling and the fix to wipe incomplete records. For recent events, verify 2026-08-24 through 2026-11-24. Use another period only when the speaker explicitly names it.
Primary sourceDo your own research
- Verify Eclair v0.14.1 release notes for the Bolt 12 batch size fix.
- Review BIP 332 proposal details for stale tip relay mechanics.
- Check Bull Bitcoin's official documentation on PayJoin requirements for the Bull Wallet.
- Examine LND GitHub PRs #11555, #11551, #11472, and #11542 for code changes.
- Confirm Marathon's Stratum V2 implementation status via Mera Foundation announcements.
- Read Bitcoin Core PR #36757 for Tor/I2P privacy leak details.
- Assess Wavelength alpha limitations (300k sats/account) for suitability.
- Check Core Lightning 26.12rc1 release notes for XPay and simple close support.
Full transcriptexpand
Voices are numbered in the order we told them apart; a name appears only when the episode itself identifies the speaker.
0:00Speaker 1: Newsletter number 432. Today we're going to be talking about a few news items, and we have our monthly segment on services to or changes to services and client software as well. Our news items are ways to think about how decentralized mining pools can pay miners from the Coinbase transaction. That should be interesting. We have another disclosure this week, unfortunately. This one is a memory exhaustion. DOS in Eclair. And then we revisit some discussion we had previously about relaying stale tip information over the Bitcoin peer-to-peer network. This week we're missing merch, but Gustavo and I are joined by one guest today. Jungly, you want to introduce yourself?
0:45Unknown speaker: Hi,
0:45Speaker 2: everyone. I'm Jungli, Jungly, largely working on Peter Pool. Happy to be here.
0:50Speaker 1: Awesome. We appreciate it. I think there's a lot of a lot of buzz on Peterpool, Peter Pool V2. And so we want to get into some of that, but let's introduce the news item in which we can tangentially jump into Peterpool V2. Framework for decentralized mining pool payouts. Jungly, welcome back. You're here this time as developer of Peter P2Pool Pool V2. This is the reboot of P2Pool. Maybe a quick background in my own words, but I want to hear your take on it. Um, P2Pool V2 is a decentralized mining pool. There is no operator holding the money, so miners get paid straight out of the Coinbase transaction. And of course, the catch here is that there's only room for a handful of payouts in Coinbase coin-based transaction. transactions. So developers developer 7D5X9, just call them 7D, I guess, hosted sort of a framework or a way to think about this problem to delving Bitcoin. Um thinking about the problem. The post calls it decentralized coin-based payouts or DCPPs, and you were in the thread with some numbers from Peterpool V2. So um maybe
2:09Jungly, it makes sense to talk about Peterpool V2. We haven't touched on it too much on the show. And I like I said, I feel like it's building some um following and momentum online. So maybe talk about that and then we can talk about we work in however you see fit this challenge with the Coinbase payouts.
2:27Speaker 2: Yeah, no, thanks a lot. This is awesome. So uh Peterpool V2 is essentially an effort to reboot Peterpool, and the motivations were twofold, right? One, uh since Peterpool kind of fell off, you know, kind of uh stopped getting much hash rate, Bitcoin has moved a lot, moved along a lot, right? So that was 2017. when some of the last blocks were found on P2 pool. And uh so we wanted to explore what is possible with the new state of uh advancements in Bitcoin. Like, you know, the L2s didn't exist, Taproot didn't exist, Schnauze signature didn't exist. Can we do something interesting
3:09Unknown speaker: here?
3:09Speaker 2: And the second was Monero had a Peter P2 pool and they were doing okay with that. So it was like for me, it was personally not a nice thing to see. Monero had a Peter pool and Bitcoin didn't, so we had to bring it back. So I ended up in charts with Blue Mat, and basically the biggest problem was exactly what this framework is pointing about. There are two there were two problems in the original Peter pool. I think your audience would probably know most of them. But just to quickly recount, one was that the the chain was slow, it was like thirty second block time and uh there was lots of uh orphan blocks, so what they call dead and arrival blocks and they were not paid for the work and miners didn't like
3:49Unknown speaker: that.
3:49Speaker 2: The second was
3:50Speaker 1: Jungly, m maybe just quick you can clarify what are you talking about thirty second block times, like
3:55Speaker 2: on the on the on the original Peterpool. Peter Pool.
3:59Speaker 1: Yeah.
3:59Unknown speaker: So m
4:00Speaker 1: maybe get into some of the mechanics just briefly about
4:03Unknown speaker: what that even is.
4:04Speaker 1: That they're there. Wait,
4:05Unknown speaker: there's a
4:05Speaker 1: separate chain, you know.
4:06Speaker 2: Yeah. Okay, sorry, let me step back. So Peterpool or the original Peterpool was essentially a blockchain where each of the blocks were the shares found by miners, right? So today you send uh shares to a centralized pool which puts them in their own proprietary closed database, which nobody else can audit, etc. What Peter Pool did was uh put them on a blockchain so everybody had the replica of the database, just like you know, good old Bitcoin. Um just that they were weak blocks. They were blocks exactly like Bitcoin blocks. They were Bitcoin blocks, but just with lower difficulty, right? And the difficulty adjustment was that such that depending on the hash rate, more or less you you've got a block-in, block in a share in every 30 seconds. So uh the 30-second time limit meant that
4:56Unknown speaker: even
4:56Speaker 2: though it was fast enough at that time, it just meant that as more miners joined, there was just not enough space to kind of get their shares in. There were only so many slots in like a one-day window where they could get their shares in so they could earn a reward. So that was problematic. There were some other fallouts from this design as well that they were hash rate estimation, but let's leave that aside. The bigger problem, which relates to this post, is that as the pool became popular, at peak it paid around 550 miners from the Coinbase. They couldn't accommodate more miners into the Coinbase, largely because you were eating into the block space. But the principal reason was there were some. firmware shipped by some popular miner uh ASICs manufacturers that would not allow such a large coinbase in. So it at some point the number fell down to 16. And in some other versions of the fame uh firmware it goes to 30. So there's not a there's not a clear answer there as well. The same miner, depending on the firmware, would have a different size of the coinbase. that they could accept. And this kind of drove what we
6:08wanted to do in Peterpool reboot, the Peterpool V2, as to how can we solve this problem. So this is kind of very related to what we're talking about in DCPP, where we come up with a number of solutions and there are still some of these
6:26Unknown speaker: issues.
6:26Speaker 2: that we need to walk around, talk about. And this this post is trying to kind of give us some terminology, some vocabulary to talk about the issues, right? So
6:37Unknown speaker: I
6:37Speaker 2: can take a breather if you want. I mean,
6:40Speaker 1: yeah, well, maybe let let's get into it. Um and so specifically, the post is exploring and assigning some terminology to some of the challenges and potential. solutions around decentralized payouts using the Coinbase. So maybe let let's get into it.
6:58Unknown speaker: I mean, if we
6:59Speaker 1: if we can't fit these payouts in the Coinbase, is it is it is it still a restriction on the mining firmware side? Or maybe we can get into that a little bit?
7:08Speaker 2: Yeah. Yeah, definitely still there's has a mining restriction. In fact, if you look at Datum, they try to do something. which is like estimate what the coin base size might be for a miner depending on the user agent they report. So if they say what's miner this or BitAx this, they they they go, okay, we've tested this and we know this is the amount of coin base they can take, and they send that much coinbase, which is kind of cool, but it's still kind of trying to go around the the limitation that exists. So once one solution uh that we discussed for Peterpool that kind of came through Grapewine and largely Blue Map basically told me about this, which is that if the share chain has script and UTXO based transaction system, right? Which is what the original Peterpool did. So if we drop that on top of Peterpool pool V2, could we build a system where these shares could be trade traded for Bitcoin? Right? The idea would be that some large miners who fit into the Coinbase would buy the shares of the small long chair long tail miners and they would pay them a discount, uh a Bitcoin at some discount, whichever whatever is the market price prices. is. So the long tail tier gets paid out immediately, whereas these bigger miners slash market makers
8:28are taking the risk of the blocks being found by the poor and therefore getting paid out. So the market could price these kind of this risk versus the time when they pay, right? So that was the idea. The problem is even in this solution, specific to what we are focused on Peterpool, TCPP is kind of more generic, but I'll start from here and then we can go to the generic one, right? The problem is that a large miner could come along and essentially stock pop it into
8:57Unknown speaker: the
8:57Speaker 2: 16
8:59Unknown speaker: uh
8:59Speaker 2: slots that exist in the Coinbase, which the post calls rich list attack, right? So some rich miner would come along, take all the slots on the Coinbase, and not buy any shares in the long tail. So the long tail is left without payouts. So that is one problem, right? How do we solve that problem? Right? Um then the post goes on talking about it kind of talks about what Breadpool tries to do, then uh uh what we can do with coin pools, which is where I'm somewhat weak at, right? So I'll just raise my hands there. But the attacks there are also possible that suppose you have a um a tree that you want to kind of small miners want to get paid out of, but someone could come along, not just rich list attack that they take all the slots, but they could just grieve uh just could start griefing the the smaller miners. So they could make sure that their uh signatures are required for roll out of of of a lot of sub subtrees trees and therefore stop the smaller miners from kind
10:02Unknown speaker: of
10:02Speaker 2: getting on-chain payouts or or just grief them, you know. So that is that's what the post calls PSG. It's called payment uh settlement griefing, right? So these are kind of the issues that this post is trying to talk about. It's got some interesting challenges. Um
10:22Unknown speaker: in
10:22Speaker 2: fact as you say in in your uh synopsis there that it's Stephen Roos came along and also mentioned that maybe without covenants it's very hard to think of schemes that can truly solve these problems. So it becomes a very strong motivator for getting some covenants out. Um we have some ideas we're brewing as to how we can get around around the RLA, the ritualist attack, specifically Peterpool, but they're not mature. matured enough to actually really be talking about yet. So we just have to kind of make sure that they they work, satisfy ourselves before we talk about
10:58Unknown speaker: them.
10:59Speaker 2: Am I on track?
11:01Speaker 1: Yeah, no, this is great. I'm just following along with m with in my notes as well. Um and yeah, you mentioned Steven Roos. He he basically says no scheme worth exploring without covenant. covenants. And then with them, one coinbase output could commit to an arc tree, paying every miner. Um yeah, so that's interesting in a maybe feather in the cap of the covenants camp if s if there's energy in the decentralized the mining stuff space toward covenants, Word that would be obviously a very strong use case, I think, for many Bitcoiners.
11:39Unknown speaker: There's one
11:40Speaker 2: more thing the post talks about, right? So we thought about what we can do on the share chain side. Could we add some opcodes? Could we add something that could help us solve the problem, right? Without changing Bitcoin, we we kind of changed script on on the sharechain. What can we do then? The problem really is that as the post talks about, that the TX idea ID of the Coinbase comes post facto after the block is found, right? So you can't do any pre-signed transactions, which is a big problem. So if there were, you know, um rebindable signatures, we could do something interesting there. Just yet another thing in terms of the feather toward in the gap of the covenants gap, as you said it.
12:24Speaker 1: You mentioned this earlier, but I think in the in the thread you suggested letting each node size the Coinbase to it like its own machines and support. Um and then I think 7D wanted a fixed constant number. Did
12:41Unknown speaker: you
12:41Speaker 1: guys land on something there?
12:43Speaker 2: We actually ran some simulations well, with the help of uh good old LLMs, right?
12:48Unknown speaker: Um it
12:49Speaker 2: doesn't really help the small miners if we if we if we make it variable. Uh it it changes their variance only ever so slightly. And it can actually what ends up happening is one of the big miners could pretend to have different Coinbase sizes,
13:08Unknown speaker: and
13:09Speaker 2: then it can start doing some games there too. So the simulations kind of become very interesting. Um but the advantage is is not big enough for the small miners to kind of warrant that complexity to go into the code base, is my personal conclusion. It's still being discussed, to be honest. But this is what my thinking is at the moment.
13:29Unknown speaker: And I think j
13:30Speaker 2: and I think uh B the poster 7D also likes the idea of a constant size Coinbase. It's just
13:38Unknown speaker: I
13:38Speaker 2: think it's cleaner. too.
13:40Speaker 1: Yeah, yeah. It you know, that's the gut reaction that I have, not diving deep into the problem, of course.
13:46Unknown speaker: Yeah.
13:47Speaker 1: Um, you mentioned simulation. There's also, you know, existing data right from back in the day that you mentioned priest 2017 and before. For
13:58Unknown speaker: Uh
13:58Speaker 1: learnbitcoin.com did that analysis on the Peter pool. Coinbases. And I think that informs some of what you articulated earlier, but anything more about what was posted there on these 2500 Coinbases, like of what what we could intuit on real data as well as the simulations?
14:17Speaker 2: Yeah, I mean I think the data that Learn Bitcoin has there is super awesome because 'Cause nobody has that really. You know, we I don't have it. Um the what I gleaned from uh scouting Bitcoin talk is like at some point, and I think Learn Bitcoin talks about it in the forum too, that the largest payout was 550. Right? It kind of gives us a ballpark informed Bower Plug that if we can get to five hundred, one thousand, fifteen hundred kind of scale limit, we might have a pool. You know, I think from from our perspective of Peterpool Peter Pool V2, we're always thinking what is the minimum hashrate you need, which is easy to figure out. But like what is the minor hash rate distribution? How many miners would there be to bring that much hash rate, right? But those are different questions. It's not really related to to this news item.
15:05Speaker 1: Gustavo, do you have questions for jungly? I do want to leave off with
15:12Unknown speaker: I
15:13Speaker 1: think the like like I mentioned, I think the audiences audience is interested about Peter Pool V2. Maybe you can give us this like what's the state? Uh one, like can a minor point hash right at it yet? What do
15:24Unknown speaker: you need from people?
15:25Speaker 1: What do
15:26Unknown speaker: you
15:26Speaker 1: need from people listening right now? And maybe also talk about, you know, if you if you weren't already, maybe talk about um testnet five.
15:34Speaker 2: Yeah, basically so testnet five 5 has been the big uh the uh news item that brought some attention to Peter Bull V2. We've been kind of mining on testnet four since April, but really in uh in a network of like two, three nodes to kind of test things out. And we had to reset chain a few times, blah blah blah.
15:49Unknown speaker: But
15:50Speaker 2: testnet five was this nice opportunity to show that look, you can just mine in a permissionless way, right? Run your node, join the network so you kind of get coins more frequently, right? And point a bit axe to it. And here you can do your development work, right? It's kind of you don't have to go to a faucet. Everybody has a bit axe now. Just plug it in, node running somewhere, and you have coins. So that was the motivation for us to kind of build test uh build it out for testnet five. Plus, it was exciting. I mean, especially Steven uh was very excited and joined join the the effort to kind of make sure that we we we went live as soon as testnet five went live. on
16:27Unknown speaker: on
16:28Speaker 2: Bitcoin. Well yeah. So that was a lot of fun. But right now what we have is if you go to P2Poolv2.org, it points you to you can join the testnet five effort either by just pointing your BIDAX or whatever high uh miner to an existing public node. Or ideally we'd love it if you can just run the node
16:50Unknown speaker: and
16:50Speaker 2: we see where we can break. Right. Right now we've reached up to 12 nodes. For me, it's bigger than one. I'm delighted. So there's two metrics people watch, right? Hashrate, but I'm interested in the other metric, which is number of nodes. Right. So a node with a bit axe is far more useful to us than hash rate on a public node. Because this is testnet five, 5. we just want to test how far things can go before they break. And yeah, this is it.
17:22Speaker 1: Maybe also as part of this call to action for listeners who who may want to experiment with this, what can you articulate the the benefits of a P2 pool for the miner as compared to let's say an ocean as compared? to, say, a foundry, right? Like what why might people be interested in P2 pool? I think as Bitcoiners who aren't mining, I think everyone wants to decentralize, you know, the hash rate, right? And there's like obviously clear benefits to Bitcoin in doing that, you know, at the block template level, but also at at the payout level, et cetera, et cetera. Um, but if I'm a miner, like how do I think about that trade off? Because then a lot of people go to Foundry because essentially they're providing insurance, right? Um and so maybe articulate the the value proposition for a miner.
18:16Speaker 2: Yeah. So um, you know, there's a lot of talk about uh decentralizing the template construction, right? Which is which is very good. And I think it's important work that we've done as a community to kind. of go towards there. The problem still remains that the the payouts are are kind of custodial, right? If you look at what Ocean does, they they pay out the big miners from the Coinbase, but because they have the same Coinbase limit, um
18:43Unknown speaker: uh
18:44Speaker 2: the other miners who want to be paid with Lightning or on-chain, on chain, their balance just sits in a co in an in an ocean ad. address, right? With Ocean custody. And then once their bookkeeping matches that okay, you've reached a certain limit, they release the pay. And if they do that, then if somebody leans on them to kind of stop certain paying certain miners who've built certain kind of transactions, they will have to follow the regulation of wherever they're operating, right? So this is not what we ideally want in Bitcoin to happen. We want you now in ideally in Bitcoin that people run mining in a way that there is not one centralized point that that can be pressured to kind of guide the future of Bitcoin.
19:26Unknown speaker: So in
19:27Speaker 1: and maybe just to riff on that briefly, that you know something like that's somewhat happened in the last whatever it's been a week, week or two, or I think Luxor or something somewhere in the Luxor stack, I thought it was Um, a hacker essentially hijacked the ad uh where where the miners were posted uh you know, uh putting their hash rate and it went to Ocean and Ocean did, you
19:52Unknown speaker: know,
19:52Speaker 1: indeed paying out. And then there
19:54Unknown speaker: was
19:55Speaker 1: discussion about you know what could they do after knowing
19:58Unknown speaker: this
19:58Speaker 1: and et cetera, et cetera. So uh it's not, you know, of course it's not just theoretical. there's sort of these examples as well.
20:04Unknown speaker: Sorry,
20:04Speaker 1: I I interrupted you.
20:06Speaker 2: No, no, it's absolutely right. I mean, the the point that the discussion happened is interesting, and that that Ocean had to come out and say, look, our values are that we'll pay it out. But the reality is that they they did have a lever to make a little change there somewhere, right? Um and that is not
20:23Unknown speaker: the
20:24Speaker 2: place where Bitcoin really wants to to be, right? So that's why peer to pool is like this idea that, you know, you can't really stop us as in we're just a peer to peer network. And if things are working, if we can resist the attacks that we talk about in DCPP, come up with the solution that works, then we can actually do something here. Uh which keeps Bitcoin permissionlessly mining.
20:47Speaker 1: Awesome. Good way to wrap it. Jungly. thanks for your time. Thanks for joining us today. You're welcome to hang on. Or if you have other things to do, we understand.
20:58Speaker 3: Thank
20:59Unknown speaker: you.
21:00Speaker 1: Disclosure of a DOS vulnerability in Eclair. This is a disclosure from a developer that goes by RORP, RARP, R O R P posting to delving Bitcoin about a bug that could let anyone connect to. an Eclair, specifically 0.14.0 node and crash it by running it out of memory. There wasn't any need for a channel. And I think I did articulate it's only that 0.14.0 because it was fixed in 14.1. So if you're on that 0.14.0, please upgrade. Um okay, so what what can the attacker do? The attacker can crash a node. There's no direct access to the bitcoins on that node, but of course, a lightning node has to be online to react to certain activity um on-chain. And so there's indirect loss of funds implications here if your node is down, of course. So that's the the scope. Um, the actual background is that this is related to some of the splicing functionality in Eclair. So during a splice, there can actually be multiple candidate
22:12funding transactions, and neither party knows which is going to confirm. So each commitment update gets signed once, and bolt 12 has this like sort of start batch message that tells the receiver. that the next N uh commitment messages are actually all part of one batch. And in that bolt 12, it actually does say that this batch size needs to be in a certain range, and that the top of the range is at most 20 and greater than one. Now, Eclair checked that upper bound, that 20. that the batch size wasn't more than 20, but it didn't check that lower bound. So the attack here is that someone could send a start batch message
23:00Unknown speaker: to
23:01Speaker 1: an eclair node, that 0.14.0 version node, with a batch size of the zero, which is below that greater than one bolt spec, and then just keep sending these messages and it would actually clear um would only stop when the account equaled the batch size. And because it's zero, and you start at one, you it would never mash. And so it would continue to accept those until the node runs out of memory. So um kind of a crazy one, but um it's fixed and it appears it was only that version that was affected. And it only triggers if they're with that zero, so a batch size of one would complete that first message message and it would be fine. And the fix was to check obviously that lower bound too, not just that upper bound. And so that was in the bolt spec. We didn't get a full briefing on how the bug was found, if this was LLM assisted or if someone was doing fuzzy. fuzzing or or whatnot. Um, but the timeline was that we're posted it to the aclared team. And then the oh, so the
24:12bug, the bug was shipped in May with 0.14.0. And by July 27th, TBAST opened up the fix, which was merged on July 28th and then 29th, 0.14.12.1. 0.14.1 shipped. Um, so 0.14.0 was the the release that was open for about 10 weeks before that.1 was fixed. And then we had the disclosure on November 8th. Um Gustavo, any comments on that one?
24:45Speaker 3: Yes. Well, I mean, this is just one of the multiple v DOS and and fun toft theft attacks we've seen. recently on on multiple lining nodes, which just reinforces the the need to constantly be upgrading to to the latest security version. Uh and also I wanted to point out that even though this is only a deniable s uh denial of service vulnerability, uh lining requires you to be online in order to respond in time to penalty transactions, to expiry times of HTLCs. So even though it's just limited to a DOS attack from a from an attacker point of view, it could also be uh exhausted to block you from claiming HTLCs or or react in time to a penalty transaction. Uh so it can have devastating consequences, once again reinforcing the need to upgrade uh with all these uh security releases.
25:36Speaker 1: And it it we didn't cover it in the same newsletter just due to the timing of these disclosures. But I think we had in newsletter four twenty-seven that zero. So I guess there's a at least three DOS bugs fixed in that zero. Okay. I think we can wrap that item. Last news item. Continued discussion of stale tip relay. We weren't able to get a guest on for this one. Um, so Gustave and I will do our best to represent um the various sides of this discussion. But the stale tip relay, this is related to BIP 332, and maybe a refresher on stale tips when you have two miners that find a block at about the same time. one eventually will win and garner
26:30Unknown speaker: the
26:30Speaker 1: majority hash rate and have blocks built on it. And the other one becomes a stale block. And today that loser or that stale block mostly just disappears from the network. Now, I'm sure our friends at Bnoc, um, B10C's group that sort of monitors the Bitcoin network. has at some point started recording these when they happen to be the ones to see the stale block. I'm sure our not friends at ChainAlysis are doing something similar with all their monitoring nodes. Um but anyways, BIP322 lets nodes relay uh those stale tips so that we, like the broader Bitcoin. network, can actually see them. So it would be like a a separate message. It would say, Hey, I
27:20Unknown speaker: I
27:20Speaker 1: have a stale tip, and then that would propagate just like a transaction or a block would throughout the network so that people can be aware of that um from a monitoring perspective. We have talked about this before, which is why it's a continued discussion. We talked about the draft for the BIP in in newsletter 417 and then the actual BIP in 423. But specifically, this coverage this week is around whether notes should relay the full stale block, so a full block or just the block header. And so there's a little bit of back and forth on this topic. Um Antoine Poinceau, Poinsol, he replied on the mailing list and he suggested that notes nodes start. with headers only. I think he advocated that that be like the default mode, if you will. Um, 'cause I think that there's three modes. There's off, headers only or full blocks. And I believe that the reference implementation defaults to off now. Um, and so there's a discussion should should full blocks be relayed, which obviously is gonna going to take up, you know, more bandwidth on on the network or just are the headers enough? So Antoine says the headers are enough to make the stale blocks observable, which is the point. If you see the header and you can you know check check the proof of work, then you you
28:39know. Um so you can get the stale rate, which is sort of like a network-wide health number. That the whole point of the BIP is to sort of gauge that network health.
28:49Unknown speaker: Um,
28:50Speaker 1: but we don't what you get is which pool mine the block, because that's in the Coinbase transaction, and whether that block was valid, because you don't necessarily know the contents, just have the header. So relaying the block data lets nodes re-org faster. And this I think is what maybe the crux of his point is onto a chain that's built on a stale block. So that can and probably would raise the expected revenue of a miner that briefly keeps mining on its own block. So it's selfishly mines, uh, or mines on its own block after losing, sorry, so it wouldn't be selfish mining, after losing the block race. He thinks this effect is small, and then we get into some responses from um AJ Towns. He replied that any miner can already do this. Like so if these large miners, you know, potentially want to get this additional advantage, they can actually implement the full-stale block relay by itself. Nothing is stopping them from doing this. He also put out some numbers.
29:57AJ did. He gave the example of a pool
30:01Unknown speaker: that
30:01Speaker 1: had 20%. of the network hash rate, and it sees a competing block first. And then it actually, one of its own workers, finds a block at the same height. So you have this race. And mining that large mining pool, mining on its own block instead of the one that it saw first, already today, without the stale tip message, yields them, in his estimation, about 16.1 Bitcoin per year. more by making that decision. And the cutting that relay time down that that Antoine was worried about, you know, that if you're passing the blocks around, then people can switch quicker. Um, so relaying that full block, the it it would cut down on the time to to um relay from five seconds to one. second in his estimation and calculation here. And then that 16.1 Bitcoin additional to that large miner becomes 16.36 in his calculations. So it adds roughly a quarter of a Bitcoin on top of an incentive that is already there.
31:09Um and then his other point is that actually stale headers so like just doing the headers can actually raise concerns like is this selfish mining? But really only the block data can settle whether it was selfish mining or not. Uh a miner hold to get a head start on the next one. The stale header shows that a miner had a competing block, but it can't show whether that block was published right away or if it was held back. Um so there's this back and forth and answer. Antoine essentially acquiesced or agreed that that AJ's estimate appeared to cover the the effect um adequately. He still thinks most of the values in headers only, but he doesn't want to block relaying full blocks. So there's quite a bit of back and forth on this. I'm w what I wonder, uh Jungly, if given your position as a mining informed person, of which I am not, if you have feedback on the discussion or
32:09the summary or anything we missed here, or just thoughts in general on the topic?
32:14Speaker 2: No, I in fact I haven't been following the thread closely. I really should, because this will benefit Peterpool if we actually do the
32:22Unknown speaker: the
32:23Speaker 2: stale tip propagation. The reason is there's there is a potential attack where Peterpool could be used to if you don't address it to kind of benefit, subsidize a a hostile chain attack, right? So for example, when the 110 thing happened, then if we don't do things properly, then and this was Murch most actually pointed it out, and we have a solution now. So the the attack could be that they could be mind mining on one ten, but at the same time mining on Bitcoin as well. So we are subsidizing any earnings from Peter Pool while they're mining on one ten, especially when there's tail tips, right? On the two uh host on the on this hostile chain and on our chain. Um so what we the solution requires us to know is as to which which share is mining on which Bitcoin block, etcetera. The details are kind of hairy, but we end up right kind of building a similar overlay on top of Peterpool where we basically send the Bitcoin headers that we're kind of seeing so that, you know, everybody can verify that they're on the right chain.
33:29Unknown speaker: So
33:30Speaker 2: this will help us, though and I I also believe that this will increase the transparency of what's happening, and that can also be good as long as it doesn't kind of have any adverse um effects on Bitcoin itself. So I'm all for this work going through.
33:50Unknown speaker: But
33:50Speaker 2: I I think I should read the thread more carefully and maybe reply there as well.
33:54Unknown speaker: Which
33:54Speaker 2: I've not been doing any.
33:56Speaker 1: Cool. I'm glad we can make uh a connection there. I did have a question and and it came up as you were explaining that, and it's un unrelated, but it jogged my my mind on something, and I haven't thought this through, but I want to get your thoughts. What for P Peterpool V2 miners, um transaction selection is done by the individual miner. And if is there is there a way to ensure you don't have miners that are doing poor or not? non-optimal or non-profitable, less profitable uh transaction selection?
34:33Speaker 2: Yeah, I mean, uh this has been brought up before too. We haven't built this part yet, but of course we we should. So
34:41Unknown speaker: and
34:41Speaker 2: there's a couple of proposals there which basically track what your what you're building and what the received share has.
34:48Unknown speaker: What
34:49Speaker 2: is the delta on the fees there and on the that you can have some validation rules, right? And so when we receive a share from another peer, we validate it. But we don't actually compare the fees that we are mining with and what the received share had. If it's like substantially different, should we do something on it? Is it different from the past average kind of fee, fee rate, et etc. cetera? Should we do something on that? We haven't worked on it yet. but we have to, I think, because otherwise people might want to do some gaming there, which is not a good idea.
35:23Speaker 1: Yeah. And and I at some point maybe there'll be more activity on chain as the subsidy dw uh dwindles. And
35:32Unknown speaker: so that
35:32Speaker 1: that becomes then even more important.
35:35Unknown speaker: Especially if
35:36Speaker 1: if you're if you're getting attacked now versus if you're getting attacked in a high fee, low subsidy world.
35:42Speaker 2: Yeah. Yeah.
35:44Unknown speaker: Yeah,
35:45Speaker 2: but just to shout out, there's a lot of work to do in Peterpool. Please come and help. Because we we can only build it together. There's just
35:51Unknown speaker: so
35:52Speaker 1: much work.
35:52Unknown speaker: Get
35:53Speaker 1: in there. Get in there, listeners.
35:55Speaker 2: Thanks.
35:56Speaker 1: Changes to services and client software. This is our monthly segment. We have a handful, so I'll go a little bit maybe faster than when we have less of these. But Gustavo or Jungli jump in. There is a mining-related one. Maybe you have some feedback. Liana is version 16.0 is released. Couple notable things for the Optech audience here is that Liana now writes its encrypted descriptor backups in that BIP 130. 138 format that we covered back in 424? Um obviously the so maybe to extrapolate the descriptor is I think Merch refers to it as a recipe, or maybe I have the wrong analogy. I know he he's got a recipe, he's got a table of contents, but a recipe for your wallet's addresses, and so if you lose it when you have a multi multi-sig sig or time lock kind of setup, uh the seat alone may not be enough to get your coins back. So you need to back up this descriptor, which is what BIP 138 advocates in in um encrypted format. And also Liana 16.0 makes Taproot the default for new wallets, which is also So I think notable for our audience.
37:11Next item, cold card firmware adds at codex thirty two 32 back. backups.
37:16Unknown speaker: We
37:16Speaker 1: didn't get yelled at for putting cold card in the newsletter. I wasn't sure if that was going to happen or not. Yeah, so Codex 32 is sort of a split between this like galaxy brain solution while being like an Amish Bitcoiner, like doing it all on paper. And so you can generate and import these Codex 32 secrets into Cold. cart now. Um and it and um you can also do use uh the device's wallet to split into two to nine Shamir shares for later recovery. And then I think tangentially or uh unrelated is actually support for per input both height and time time locks for PSPT. PSPT2 transactions. Wavelengths released on mainnet. So this is Lightning Lab's Arc-like payment toolkit. We talked about it as an alpha. Um, oh, it's on, okay. Uh it's on mainnet as an alpha, but we had covered the alpha pre-release uh in newsletter
38:25415. This is
38:27Unknown speaker: a
38:27Speaker 1: toolkit, like I mentioned, it's an arc-wide payment toolkit. I think they're targeting, it's pitched at AI agents, like so paying per API call kind of idea. And it lets developers add to payment functionality, send receive over Lightning, no node to run, no channels, no liquidity to manage, and it's self-custodial. Um arc.
38:54Unknown speaker: Uh
38:55Speaker 1: it differs from normal ARC slightly. There, there's Arc Lab calls it ARC-like, but it hasn't really published like a side-by-side comparison of the features. The core pieces are the same, still have these arc rounds, we still have BT BTXOs, XOs. you still have um XPRE Xpery and Refresh, you have the ability for unilateral legs adding. exit. It is a wavelength is Lightning first. So every payment is a normal lightning invoice. And then ARC is sort of this hidden settlement layer. I I think we can expect, and I think it says in one of the announcements from Um Lightning Labs that stable coins are coming soon. And I think the repository already has. things referencing taproot assets in ARCS, VTXO trees. Um
39:45Unknown speaker: so
39:45Speaker 1: I think that's maybe the main main difference. There are some limits as they're doing this in sort of like a less reckless way.
39:54Unknown speaker: Uh
39:55Speaker 1: 300,000 sats per account. Count.
39:57Unknown speaker: And
39:58Speaker 1: then we didn't have this in the newsletter, but it's 50,000 sats per VTXO. Uh with that's obviously the version of a of a coin in Arc Land. Uh 0.25% on Lightning Payments is the fee, both on sending and receiving. Um yeah, I mean that's all I pulled out. You see anything, Gustavo?
40:20Speaker 3: Yeah, I would just add that uh it's yeah, it's targeted for agent use, but also for for regular devices. developer use. I think now Wavelength is presented as the easiest way to integrate Bitcoin payments um from the L and D team, right? So this is the the solution they're bringing to market for uh all of if you want to integrate Bitcoin payments in in an online store, uh this is what you should use if you want to use L and D infrastructure and you don't want to run your own node or or use any manage any channel liquidity, for example.
40:55Speaker 1: Bull Bitcoin makes Pageoin the default for exchange orders. So this is if you're buying on the Bull Bitcoin exchange, or I guess if you're uh I I think also if you're selling. So both sending, uh, which would be withdrawing out of bold bull bitcoin, as well as bold bull bitcoin receiving or depositing. deposits going in uh are now defaulting to pay join which is pretty cool where you know the receiver adds one of their own inputs breaking the common input heuristic that our friends uh like to use to try to de-anonymize us. This applies to Bitcoin, obviously Lightning and Liquid, which I think bull supports. Those are not page paid join. related on either end, withdraw or deposit. And if the pay join fails, there is this fallback to um a non-pay join or nor normal Bitcoin transaction. Bull wallet has had paid join for a while. It was back in newsletter three 338 thirty eight that we covered that. And also a big piece to um version 6.14 of their wallet adds uh experimental support for sending and receiving silent payments. So pretty cool. I think
42:12bull on both you know their wallet and exchange side of things are sort of leading adopters of some of this privacy tech, which is is great to see it out there and being used.
42:23Speaker 3: Yeah, I would just add that for the page join. uh to be part of the exchange orders, you need to use it via the bull wallet, right? So it requires the user to use bull wallet, and that's the only way the bull Bitcoin exchange can create a page on collaborative transaction with a user. Uh so if you were using bull bitcoin exchange from outside of the bull wallet, then this feature is not. possible.
42:52Speaker 1: So it doesn't support uh pay join w other mobile wallets or other wallets that do support pay join? Or are like is there some special communication between bull and bull on both sides of this that you're saying?
43:07Speaker 3: Exactly. Exactly. It requires because of pay join requires a sort of coordination between both users that are involved in the collaborative transaction. Uh it seems that this release only supports it when a user uses bull wallet and buys Bitcoin via the from the exchange, but via the wallet.
43:28Speaker 1: That's a good point of clarification.
43:30Unknown speaker: I
43:31Speaker 1: would assume that they would be working on
43:33Unknown speaker: I
43:34Speaker 1: forget which BIP bit it is. The The the one where the coordination is l is less cumbersome. Um
43:42Unknown speaker: Yeah,
43:42Speaker 1: so that you could use it with like CakeWallet or whoever else is supporting Pageoin lately.
43:48Speaker 3: Yeah, I well just to add there that the the bull wallet itself works uh with other uh wallets, such as let's say KakeWallet for Pageoin, but the bull exchange only works with the bull
44:01Unknown speaker: wallet
44:01Speaker 3: for Pageoin. pay
44:02Unknown speaker: join.
44:02Speaker 1: Yeah. makes sense. Next item. Breeze SDK adding silent payment sending. This one's pretty straightforward. This is version 0.28.0 of the Breeze SDK. This is the Spark-based um SDK that
44:19Unknown speaker: we
44:20Speaker 1: spoken about previously. Obviously, It adds support for sending two silent payment addresses, which is great.
44:26Unknown speaker: I
44:27Speaker 1: didn't have anything more on that one. Silent payment scanner for Electrum. This is a plugin. Ali Sharif, who I believe we've had on the show before, announced SP scan D, which is a watch-only silent payment scanner, and it works with Electrum, um, the Electrum sending plugin that we covered
44:50Unknown speaker: back
44:50Speaker 1: in. 419. So that plugin handled the sending, and this, what we're highlighting today, covers what you've received.
44:59Unknown speaker: Um
45:00Speaker 1: and so that scanning is supported three different ways. You can have a Bitcoin core node, a blind bit server, or a blind bit server combined with compact block filters. And you they can get that information from peer-to-peer peers then. And then from the announcement, it says it never asks a server about an address, output, or transaction.
45:22Unknown speaker: So
45:22Speaker 1: that's pretty cool. We have our mining related item here. Stratum V2 releases. And then we also talk about pool adoption here. The main item is that the Stratum V2 reference implementation released a SV2 apps 0.9.0.
45:43Unknown speaker: I
45:43Speaker 1: don't remember when we talked about this before, but they sort of split up their their repo um at some point. And so this is an update to that. Adding support for Bitcoin Core 32.x, 32.1 at the moment, including submitting blocks found over cores. IPC interface, which we've talked about a few different times before, in order to do the Stratum work. The IPC was uh implemented fully, mining IPC, so sort of a sidecar strata v2 program running, and it can talk to Bitcoin Core, IPC being just a very efficient way to do the communication as opposed to. RC. Another, I guess, big chunk, not surprising, is hardening the job um declarator client. And it references somewhere else in the release.
46:44Unknown speaker: Uh
46:44Speaker 1: continues the Use loop audit hardening. So I think that the loop audit probably rolled up into that. hardening piece for the job declarator.
46:55Unknown speaker: And
46:55Speaker 1: then we worked in two related items that Marathon via the Marathon Foundation announced it's mining its first block using Strata V2. And Foundry announced that it's begun testing Strata stratum V2 on its pool.
47:14Unknown speaker: Uh
47:14Speaker 1: I even have a note on here. If Jungly is still on, good spot to ask for a reaction. Jungly, you're still on. What's
47:21Unknown speaker: your reaction?
47:23Speaker 2: Well I think it's brilliant.
47:25Unknown speaker: I
47:25Speaker 2: think it's good what's happening. The more things we experiment with and play with, it's and more people are interested in mining and trying to figure things out how we can improve it, the better.
47:36Unknown speaker: I
47:36Speaker 2: think it's brilliant.
47:37Speaker 1: Awesome. Marathon, I think it was the Mera Foundation, posted something about like, hey, why we're doing this. Because I think a lot of a lot of people here Strat Mv2, and if and it's wonderful, everyone thinks, okay, so all the individual miners can, you know, do block template selection, right? And create their own block templates. But Marathon is like sort of all
48:03Unknown speaker: one
48:04Speaker 1: maybe not entirely, but I think it's like basically all one big stack. Like they're the pool, they're the miners, they're all of it. And so why would they need to do that then? And they came out with a post articulating a lot of like good points um there about encrypted communication, speed, etc. And so if you can find it on X, look look up the Mera Merit Foundation and and you can see I think I think they had an article about it, um, which is interesting because that's the first thing a lot of people think of is like, well, wait, I thought the point of this was
48:35Unknown speaker: and
48:35Speaker 1: so there's obviously other benefits to stratav2 as well. So that's a good gateway to understand those other benefits. Anything else on this one, Gustavo, from your side? Cool. CoinSwap Coin swap renamed rename to open swap. There's also things other than just the renaming, obviously. So open swap 0.2.3. This is the first release under that new name. This is the implementation of the coin swap protocol.
49:05Unknown speaker: We
49:05Speaker 1: covered 0.2.2 actually. So the previous release, and that was in newsletter 415. As a reminder, CoinSwap lets two users swap. coins using the uh using transactions and they look like ordinary payments. And I forget, I think we might have had on one of the authors for that, and he walked through sort of the details of CoinSwap, which was pretty cool. So that was news newsletter That and are in podcast 415. Also, OpenSwap adds an electrum source. Server backend option, which it didn't happen before. It adds the ability to execute a swap that actually pays a third party address. And if you build OpenSwap with Lightning support, it actually adds the ability to swap between on chain funds and lightning network funds. And that uses LDK server. So that's pretty cool. Pretty seems like a pretty robust release. I'll have to remember to call it OpenSwap now.
50:06Speaker 2: Uh can I add something here quickly? Yeah. Um we we really like OpenSwap project 'cause we do want a swapping system in Peterpool. I mean it does Bitcoin and Lightning, but it'll be lovely to do share chain and lightning swaps using open swaps in some way. So we're gonna try to look into it. And we're talking to OpenSwap open swap people as well. So I think this is good stuff.
50:28Speaker 1: And so would that be a way then to swap uh you were mentioning like the long tail of
50:33Unknown speaker: miners who aren't
50:34Speaker 1: getting paid out. And you mentioned like that a miner, the larger miner could be like a market maker or something and and and trade the shares. And so this could be the mechanism in which you execute that.
50:45Speaker 2: Yeah, exactly. Especially if it's a well developed uh uh product, you know, which has been tested. It's open source and and you know, uh has the on the security checks. It's really lovely to be able to lean on such projects, you know, in the ecosystem.
50:59Speaker 1: Very cool. Thanks for that color. Releases and release candidates. We wrapped up our changes to client software. So I it's th do we get 'em get them all? I think we got 'em got them all. Yeah. All right. So Gustavo
51:14Unknown speaker: author.
51:15Speaker 1: and release and notable code. Extraordinaire. What's going on?
51:21Speaker 3: Yes, thank you, Mike. So this week we have one release candidate, uh core lining version 26.12. Uh so this is uh the first next uh major version of core lining we've seen in a while. Most of the coverage of core lining was around the security releases. So this one adds quite a few new features and changes. There's one we covered in the section we're gonna cover in the section below, which is a new tool for recovering HCLC outputs after channel state loss. But we're gonna go into more detail about that one. There's a lot of improvements to payment pay finding, as we've covered in newsletter 418 and 430, uh, mostly around the implementation of XPay, which is now the preferred pay uh invoice payment method or or uh RPC command within core lighting, which uh also surpasses pay. Um pay is getting deprecated and will now be fully removed in version 27.03. Another uh interesting feature is experimental support for the option simple close cooperative closed protocol, uh, which is now um in experimental uh support in core lining, so it requires
52:40like uh activating it on purpose. It's not it's not enabled by default. Um I think another one is that when you when you for when you're your in note forward forwards space. payments um it used to and it a forward fails it used to not return a specific loc local forward failed message. Uh now this release includes specific forward failure messages so you can know why a a payment failed to forward via your note. Um but yeah overall there's multiple other changes so people are invited to test out the release candidate, uh, find any issues with it before we move on to our next release candidate and to them and to the official release.
53:24Speaker 1: Maybe just a note on the version numbering here. I believe the core lightning moved to doing major versions and then the dot is like the month in which it's targeted to be released, so twenty 26.12 six dot twelfth December. 27.03, I believe, would be March next year. I think I think they may be on quarterly quarterly releases for the major. Um and so yeah, if you think like well that that sounds weird that it would be 27.03 that they're gonna replace uh Huh. um X Fay for pay, you know, that's sort of maybe the time frame you you could have in mind.
54:06Speaker 3: Right. Precisely. Really, really good clarification. Thank you, Mike. So now we move on to the notable code section. This time we have multiple uh lining uh issues once again, but we're gonna start with one from Bitcoin Core and another one from the BIPS repository before getting into the planning implementations. So the first one is a privacy leak in address discovery over Tor or I2P using Bitcoin Core. So, for example, if your node would connect outbound to a malicious Tor or I2P peer, the peer would send a message back in And it's actually it would send in its version message, it could claim to see your node at an RB. arbitrary routable IP address. It would simply uh it could simply drop drop any IP address, right? It doesn't have to to be your IP address, it would just claim that it's seen your node at this IP address uh on clear then, right? But you are connected to him via Toro or I2P, so he doesn't really have that visibility. He's just claiming he has it. The problem was that Bitcoin Core would then reply back with that same address. So it wouldn't reveal its real address, but it would reveal its actual listening port. So
55:26if you were a user that was using in and a distinctive port, that could help correlate to your clear Clearnet net node address if your note node was if your port was distinct distinctive enough. So the fix is for Bitcoin Core to simply ignore addresses that Tor or I2P peers report seeing your node at, even if it's the real ClearNet address you have or not, it will simply ignore that and not reply to it with its actual ClearNet listening port. The next item, BIPS BIPS2356. 2356. By the way, Jungly, feel free to jump in on any of these items if you have any comments. So the next item on the BIPS repository, this is finally the pull request that marks the BIP around Tesnet 5 as deployed. Now that uh the Tesnet 5 started uh about 10 days ago. And it also replaces the placeholder Genesis parameters with those of the actual mind uh testnet 5 Genesis block. So we did talk a little bit more about that in the past newsletter, I believe, uh 400 to 31. Uh so if listeners want to learn more about Tesnet 5 and the multiple decisions
56:43that we're taking for these Genesis parameters, Genesis block parameters, they can reference back to the previous episode.
56:51Unknown speaker: The
56:51Speaker 3: next item, core lining 9730. So this is the tool that I was mentioning earlier in the release section. It's a new command called lining HSM tool recover HTLC. So this allows you to manually recover HTLC outputs after local channel state loss. So previously we've covered how you a user can use his static channel backup to recover its main output. However, what about the remaining HTLC outputs? So this new command allows you to recover those HTLC outputs. However, it does require you to have your local HSM secret, your channel and HCL HTLC details. and the peers per commitment point. So it's not uh if your state, if your full state was cleared except uh your static channel backup, you wouldn't be able to to to benefit from this. It does require all these other informations. Uh however, there's not there's also a tool um that or a new uh
58:02command that allows a cooperative peer to export his public commitment points uh per commitment points. So if you had a communicate external communication outside of the Lightning Network with your channel peer, he could uh use this other this other command to export uh the public point without revealing C. secrets and he would hand that uh to you off via another channel and you would be able to to to use that if you had lost that state for example. Um so the tool constructs signed transactions to reclaim the HTLCs but it still requires a user to manually review and broadcast these transactions.
58:50Unknown speaker: The
58:50Speaker 3: next items are now from the LDK repo. So all of the next four items that I'm gonna cover were actually included in the release that we covered last week in Newsletter four hundred thirty one. Uh that's precisely LDK version zero dot two dot eight. Um so
59:10Unknown speaker: And all
59:10Speaker 1: fixes it looks like
59:13Speaker 3: Right, exactly. Well All that's that's what I meant. All of these fixes are were included in in the past uh in the past release. Uh I was ab I was able to include the release in the past newsletter, but these these fixes came in uh a bit after my cutoff, which is why they're now included in this newsletter. So the first one, 5561. Um this is about uh an order, uh a potential. loss of forwarded funds if a peer sends a message before he is supposed to, before you send the corresponding commitment signed message. So if the if the peer sends the revoke and act message, which he's supposed to send after your commitment signed message, but if he sends it before LDK could previously accept this premature acknowledgement and advance its internal commitment number. The only issue here is that LDK would advance its internal commitment number, which meant that on a later commitment signature,
1:00:17Unknown speaker: uh
1:00:18Speaker 3: LDK would record a different uh commitment number, right? Because remember, the previous one never got to the commitment signal. signature exchange, so it wasn't uh of it shouldn't have been officially recorded. But LDK got tricked into recording uh a commitment uh transaction that wasn't fully that that were signatures were never exchanged, so it advanced its commitment number, which meant that later on it would sign another commitment uh that deferred from the one recorded by its on-chain monitor, right? Because it's tracking a different commitment number. If the peer published that commitment, LDK would be unable to claim the incoming HTLCs even after paying the outgoing HTLCs, even if it knew the pre-image, right? Because it was simply targeting the wrong commitment number.
1:01:14Unknown speaker: Now
1:01:14Speaker 3: LDK rejects the premature acknowledgement. So if a peer sends the revoke and act message, which revokes a previous commitment and which is supposed to be sent after exchanging commitment signatures, if LDK will simply now reject if that message is sent prematurely, and it will also foreclose the channel since it detects it as sort of as an attack. The next two item are two pull requests that are combined. Um both, once again, fixes were released in in the pre in the LDK version that that was covered last week. This is about channel ID collision. Okay, so this is uh an interesting one. If a peer had uh an existing channel with you, and of course he knows the channel ID called. ID, if um he that channel would get foreclosed, and the peer opened a new channel to you and reuse the foreclosed channels ID as the new
1:02:19channel's temporary ID. This could create a sort of confusion inside your LDK node and it would prevent. it from recording a forwarded payments pre-image in the closed channels monitor, right? Because it's now thinking that the new channel attempt, because it has the same channel ID as this foreclosed one, it gets confused between both. And that would leave the incoming HTLC unclaimed after the outgoing HTLC had been paid. Um, in the second case, uh, the peer would calculate a channel's future final ID from its funding transaction. Once again, the peer is in control of all these channel attempts, and it would submit another opening request with the temporary ID. It's important to know that uh Lightning channels have a temporary ID first, and then they have a future. final ID. So the peer, if the original channel adopted its final ID
1:03:23before the application accepted the new request, LDK could then accept the second channel with the temporary with We have a temporary ID that mirrors the final ID of the first channel that. passed. And that would the second channel would override the funded state of the first channel because of the channel ID collision. And that would also could also lead to issues around claiming HTLCs. So the fix is simple. It's for simply LDK to always reject conflicting IDs and uh to recheck them at acceptable. acceptance. Both of these if fixes were included, like I said, in the in the latest security release. And in newsletter 427, precisely the DOS vulnerabilities you were talking about earlier, Mike, about that were also included in Eclair version 0.14.1. Uh that was also about channel ID collisions. So we've seen multiple cases of channel ID collisions.
1:04:34Next, LDK 5557. So this is another vulnerability where which fix was also released in LDK version 0.2.8. And this is about a malicious period peer that could disrupt transaction. monitoring if you were using an electron backend. So for example, a peer, a malicious peer could propose a channel whose claimed output reuse an already watched outpoint, but with a different locking script, which meant that registering that channel proposal could overwrite the watch towards script. So if you're watching for a specific transaction, and then a peer opens a channel using the same outpoint uh that you were watching, but with a different locking script, and then that peer simply um retired that a channel opening attempt, or LDK rejected the channel because it it it it wasn't a proper channel, it would
1:05:42still overwrite what LDK was watching for. And it would simply make LDQ query electron for transactions associated with the bogger's script, with the wrong script, which meant that LDK would simply miss the transaction that was pending spending the real output. So at first it's monitoring correct correctly, but an attacker confuses it into monitoring something else with a different script that doesn't really exist. And that makes LDK miss the transaction and it can prevent a timely response to a channel closure. For example, in the case of a penalty transaction. Now, LDK uh now retains every distinct distinct script registered for an outpoint, uh so a boggage registration doesn't cannot suppress a legitimate watch. The next item are overpayment issues uh related to to fee to the fee budget. So in the first case, um which only the first one was included in the rele in the in the security release. The second one wasn't yet included in a in the security release. But in the first case, uh if
1:06:59LDK omitted its fee limit setting for async payments, um L instead of applying the default, which you LDK should apply a default if the user omits a setting. In this case, LDK would simply omit the fee limit at all. So peer could uh could get you to overpay uh your overpay your fee budget, even the default fee budget, um, when specifically for asynchronous payments using static Bolt 12 invoices. So the fix is simple. LDK would simply apply the default cap when the application omits the setting. The second PR addresses uh retries when a route adds value to meet an HCLC minimum. So for example, you want to send a payout of 10,000 SATS and you're paying 100 sats in fees, let's say.
1:08:04If let's say you the HLCLC minimum is of 1,05 sats, instead of paying 1,005 sats and 100 sats in fees, the issue here would be that LDK would include the 100 sats in fees inside the paid amount. So it wouldn't just pay 1,005, 1,500, it would pay 1,100. It would always include the fee it was paying inside the amount, plus it would pay the same the fee extra. So you would be spending, instead of spending 1,005 sats plus 100 sats in fees, you would be spending 1,100 sats in payment plus 100 sats in and fees. So that extra value would get uh added to the payment. Uh the fee value would get added to the payment accidentally. So now LDK retries only the remaining amount owed and counts any excess against the remaining fee budget. So it never overpays on its fees. The next items
1:09:08now come from the L and D repo. Um many of them were also included in the a previous um in the previous security release. I think only the last two, yes. So the first one, the L and D 11555. This is about how LND reports non-AMP invoices as sale. Okay, so AMP invoices are excluded, and in the next item we're gonna talk a little bit about them. So the problem here was that uh LND was um simply marking uh like parts as settled, even though they hadn't fully been settled. Uh what what triggered previously marked marking them as settled was that the pre-image was released. Uh but now there's a new state called pending settle that where the invoice enters in that state on pre-image release. Only once every HTLC in the payment has a final off-chain or on-chain outcome that L and D marks the invoice as settled. If any
1:10:23parts would have gone and collected or canceled, cancelled, uh excuse me, L and D marks the invoice as settled if all parts are collected. However, if any part isn't collected, uh the invoice is marked as cancelled. A cancel invoice can still have collected some parts, um but it's important for um and excuse me. Yeah. A cancel invoice can still have collected some parts which are not refunded, so applications should credit only the amounts from finalized successful HTLCs. This one is a bit uh might the next one might be a sound a bit related to this one. Uh 11,551. This is about fixing expiry validation when completing multipath payments and AMP payments. So here the problem with was that if a part arrived, LND would check its expiry. And then
1:11:24the other parts could arrive later. And LND would simply not recheck the expiry of a previously accepted part, which is obviously a mistake because blocks, many blocks could have happened. until the lit last parts arrive. So the fix is for LDK to always recheck every part against the current block height. And if a previous accept if a previously accepted part is now too close to expiry, LND L and D fails the complete set and leaves the invoice open for another attempt. The next items uh are there's now two final items and both of these were included in both LND version zero twenty-one dot eight and version zero dot twenty dot eight, which we covered in newsletter four hundred thirty one. So the first one are about potential errors when making a valid sweep. So for example, I have multiple uh channels that I wanna multiple
1:12:33channels that got for closed and I wanna sweep the HCLCs, the outputs from those channels. So I make one transaction that can combine multiple inputs to sweep. However, um the first would fail would stop retrying if there was a temporary or unclassified error. So for example, if you tried to broadcast that sweeping transaction and uh you got a response, for example, that uh uh uh the node was busy or that there's an error string that LND cannot categorize, LND would simply stop there and would not retry sending that transaction, which was obviously wrong because that was just a transient or unclassified error. So the fix is for LND to now treat temporary or unclassified errors as retryable. The second part of this item is
1:13:35to not let one bat input poison the whole batch. So for example, if you had a sweep transaction with five different inputs and one input had an issue, such as it's the counterparty had already sweep swept that HTLC output, or it conflicted with something already in the mempool, well, of course the mempool mempo rejects the entire transaction. L LND and D previously would simply stop there. Where the now the fix is for L and D to build diagnostic transactions. Which means, for example, there's five inputs, and one of them is the issue. LND would try all combinations that removed either the first input or the second input. It would try multiple combinations against the test memory. memple accept endpoint of the of its backend of the Bitcoin node that's broadcasting the transaction. So if one combination of those subsets that remove one input would work when in in that test memple accept endpoint, then
1:14:45LDK knows, excuse me, LND knows which input to remove for the transaction to get accepted. And the final bug, which is, or or bug fix, which is LND 11542, which also shipped in these uh security leases that I covered. This fixes two edge cases bugs that could leave forwarded HCLCs stranded after a channel reconnects. So there were two ways it could LND could drop the unresolved HCLCs. The first one was an indexing bug. Okay, so for example, LND has three HCLCs in a specific index order, right? The first one has position zero, the second one has position one. And LND is replaying them after uh channel connected, uh disconnected, and reconnected. If the first one had already been acknowledged, LND would simply skip it. However, the problem is that the second one was at index position one. But because L and D skipped the first HCLC, it would assume that the second one was at index position zero, even though it was an index position one.
1:16:01And so on, right? It would just get made. mistaken on the index position of these HTLCs, which meant that it would try to look up metadata keyed to the wrong HCLC. And that could leave an HTLC unresolved and unclaimed. The fix is now for LND to always look up metadata keyed to their original position. and not get confused on their index position after the fact. The second one is a race condition. If a channel's HCLC handler stopped right after LND recorded a batch, but before it handed off an HCLC, that half-finished have finished record stuck around and tricked LND into throwing future away future retries as duplicates. That would also make LND make potentially like leave unattended a forwarded HTLC. Now the fix is for LND to preserve the original batch indexes during reply, during replay, play, like I said, for the first fix, and wipes incomplete records when a handout fails. So those ACs. HCLCs can actually be retried.
1:17:17Unknown speaker: So
1:17:17Speaker 3: that's the final item from uh from this repo, uh, from this newsletter, and that completes the the whole newsletter. Thank you.
1:17:25Speaker 1: Thanks, Gustavo.
1:17:27Unknown speaker: And
1:17:27Speaker 1: thanks Jungly for joining us and also for hanging on for the whole newsletter and being a sounding board and providing some color commentary for us. We appreciate it. And we want to thank everyone for listening. We'll hear you next week.
1:17:40Speaker 4: Cheers.