Bitcoin Core, Lightning, and Testnet 5: Vulnerabilities, Genesis Block, and Protocol Updates
Summary
Antoine Poinsot and other speakers discuss three Bitcoin Core vulnerabilities, including a truck sibling eviction bug, a Tor whitelist issue, and a block processing stall via witness malleation. The episode covers Testnet 5's genesis block mining, which uses Bitcoin block 975,744's hash and enforces BIP 54 rules, with P2Pool V2 mining a significant portion of blocks. Draft BIPs for anti-exfiltration signing and issues with compact block reconstruction due to Rune minting are also analyzed. Finally, technical updates on Core Lightning, LDK, and LND address critical bugs in HTLC handling, cooperative closes, and Bolt 12 implementation.
Episode sections
- 0:00 – 4:34
Bitcoin Core Vulnerability Disclosures
Antoine Poinsot joins the podcast to discuss three Bitcoin Core vulnerabilities disclosed in Newsletter #431. He distinguishes these from recent LLM-found bugs, explaining that these were found by human researchers and followed the standard embargoed disclosure process.
- 4:34 – 15:34
Truck Sibling Eviction Bug
A high-criticality bug in Bitcoin Core's truck (transaction replacement) logic caused mempool inconsistency during reorganizations. If a truck package was mined but a sibling transaction remained in the mempool, a reorg could trigger sibling eviction incorrectly, leaving orphaned descendants and stalling miners until a node restart.
- 15:34 – 30:25
Tor Whitelist Bug
A bug in Bitcoin Core treated inbound Tor connections as localhost, causing nodes whitelisted for Tor to lose address caching privacy mitigations. This affected thousands of nodes, particularly turnkey solutions like Node in a Box that whitelisted Tor peers for remote access.
- 30:25 – 38:12
Block Processing Stall via Witness Malleation
A medium-severity bug allowed a malicious peer to stall block processing for 10 minutes or indefinitely by malleating the witness part of a block. This tricked the node into clearing download state without receiving the correct block, exploiting the parallel block download logic.
- 38:12 – 40:12
Tor Vulnerability Statistics
Antoine Poinsot discusses a Tor vulnerability affecting Bitcoin nodes, noting that approximately 13% of reachable peers run a vulnerable version without the mitigation. He clarifies that this statistic includes both Bitcoin Core and NoTLS nodes, and that the fix was backported to version 29.
- 40:12 – 45:02
Testnet 5 Genesis Block Mining
The hosts discuss the mining of the Testnet 5 genesis block, which occurred on November 14th UTC. The block was mined using the hash of Bitcoin block 975,744 as a commitment to prevent tampering. The network has a significantly higher minimum difficulty than Testnet 4, requiring ASICs.
- 45:02 – 50:27
BIP 54 and Testnet 5 Compatibility
Antoine Poinsot explains that Testnet 5 enforces BIP 54 consensus rules from genesis. Miners must update their coinbase transaction generation to set lock times to block heights to ensure unique coinbases, preventing replay attacks from pre-BIP30/BIP34 blocks.
- 50:27 – 55:55
Draft BIPs for Anti-Exfil Signing
The hosts discuss draft BIPs by Connor Denny for anti-exfiltration signing. The protocol uses a two-round commitment process involving both the host and hardware device to prevent malicious firmware from leaking seed information via nonce patterns. It currently supports single-signer Taproot and ECDSA.
- 55:55 – 1:16:07
Compact Block Reconstruction Issues
Discussion on network monitoring by B10C and Greg Sanders revealing poor compact block reconstruction rates due to Rune minting chains. These chains used pay-to-anchor outputs to minimize fees, allowing miners to see transactions before other nodes, disrupting standard block propagation.
- 1:16:07 – 1:20:50
BIPs 2347 and 2342: Testnet 5 Genesis Block and BIP34 Clarification
Speaker_3 details PR 2347, which modifies the Testnet 5 genesis block to be mineable by traditional pool infrastructure by moving a mainet block hash to the Coinbase input script and using OP_RETURN. Speaker_2 adds that PR 2342 clarifies BIP34, requiring zero-padding for block heights 1-16 to ensure the Coinbase field meets the minimum two-byte length.
- 1:20:50 – 1:22:14
Core Lightning PR 9610: HTLC Amount Overflow Fix
Speaker_3 explains that Core Lightning PR 9610 fixes a crash caused by oversized HTLC amounts (e.g., 92 billion BTC) that could overflow and be interpreted as negative values, bypassing balance checks. The fix rejects amounts above the 21 million BTC cap before arithmetic operations.
- 1:22:14 – 1:24:31
LDK PRs 5507 and 5532: Cooperative Close Signature Bugs
Speaker_3 describes two LDK bugs during cooperative closes: one where cached signatures were reused for new transactions if fees matched, leading to invalid broadcasts; and another involving asynchronous signers where pending states weren't cleared, causing funds to become stuck.
- 1:24:31 – 1:29:00
LND PRs 11492, 11479, 11340, 11374: HTLC Recovery and Bolt 12 Offers
Speaker_3 covers LND fixes for AMP payment pre-image recovery (11492) and handling broadcast timeouts for multi-channel opens (11479). He also discusses the implementation of Bolt 12 offer creation and validation (11340, 11374), noting the receiver side is nearly complete.
- 1:29:00 – 1:32:43
LND PRs 11480 and 11481: Static Backup Crash and Revoke Commitment Scanning
Speaker_3 details LND PR 11480, which prevents crashes when force-closing channels with static backups. He then explains PR 11481, which fixes a vulnerability where attackers could confuse LND's transaction scanning by reusing transaction IDs, ensuring scans check output scripts as well.
Assets discussed
| Asset | Kind | Stance | Context |
|---|---|---|---|
| BitcoinBTC | crypto | neutral | Welcome everyone to Bitcoin Optech newsletter number 431 recap. We're going to talk about some Bitcoin core vulnerability disclosures in older versions. |
| Bitcoin CashBCH | crypto | neutral | So for uh Bitcoin Core and Bitcoin Nuts uh gossip IP addresses that run Bitcoin Core, that is, that are announced to them and they forward them. |
“Stance” is how the speakers talked about the asset, not a recommendation.
Claims worth verifying
13% of reachable peers are running a version without the Tor mitigation.
Antoine Poinsot ·39:13
How to verify: Check the Tor status of Bitcoin nodes via network monitoring tools like Bitnodes or the Bitcoin Optech newsletter data. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Testnet 5 genesis block was mined at 5 AM UTC on November 14th.
Unidentified speaker (speaker_2) ·42:51
How to verify: Check the block explorer for Testnet 5 for the first block's timestamp. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Testnet 5 minimum difficulty is about a million times higher than Testnet 4.
Unidentified speaker (speaker_0) ·42:00
How to verify: Compare the nMinimumDifficulty parameter in the Testnet 5 and Testnet 4 genesis blocks. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
BIP 54 requires miners to set lock time to a block height adjacent number.
Unidentified speaker (speaker_2) ·47:35
How to verify: Read the draft BIP 54 specification in the BIPs repository. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Bitcoin Core has been BIP 54 compatible since version 29 or 30.
Antoine Poinsot ·46:19
How to verify: Check Bitcoin Core release notes or source code history for BIP 54 implementation. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
One-third of all Testnet 5 blocks were mined by P2Pool V2.
Unidentified speaker (speaker_2) ·43:30
How to verify: Analyze block headers on Testnet 5 to identify the miner/pool via the coinbase script. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
The anti-exfil signing protocol is already in use by Jade and BitBox.
Unidentified speaker (speaker_2) ·55:28
How to verify: Check the documentation or source code for Jade and BitBox hardware wallets. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Rune mints reached mining pools minutes before the rest of the network.
Unidentified speaker (speaker_0) ·57:43
How to verify: Analyze transaction propagation times and mempool data from September/October 2026. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Testnet 5 difficulty is considerably higher, believed to be a million times higher than Testnet 4.
Unidentified speaker (speaker_3) ·1:16:27
How to verify: Check Testnet 5 genesis block parameters and difficulty adjustment algorithm in Bitcoin Core source code or Testnet 5 specification documents. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
BIP 95 updates (PR 2347) move the commitment to a recent mainet block hash from a public key field to a readable text part in the Coinbase input script.
Unidentified speaker (speaker_3) ·1:17:06
How to verify: Review Bitcoin Core PR #2347 on GitHub to see the diff in the genesis block transaction structure. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
BIP 34 specification was updated (PR 2342) to require heights 1-16 to use single-byte opcodes OP1 through OP16 without a push prefix.
Unidentified speaker (speaker_3) ·1:18:59
How to verify: Review Bitcoin Core PR #2342 on GitHub and compare against the BIP 34 specification text. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Core Lightning PR 9610 fixes a crash caused by HTLC amounts of at least 92 billion Bitcoin causing overflow.
Unidentified speaker (speaker_3) ·1:21:09
How to verify: Review Core Lightning PR #9610 on GitHub for the code change adding a ceiling check of 21 million BTC. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
LDK bug (PR 5507) reused cached signatures for cooperative close transactions if the proposed fee matched.
Unidentified speaker (speaker_3) ·1:22:34
How to verify: Review LDK PR #5507 on GitHub to see the logic change preventing signature reuse based solely on fee matching. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
LND previously treated AMP payment pre-images as invoice-level pre-images, making on-chain recovery difficult.
Unidentified speaker (speaker_3) ·1:25:11
How to verify: Review LND PR #11492 on GitHub to see the change in pre-image lookup logic for AMP payments. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Primary sourceLND PR 11479 fixes a bug where broadcast timeouts were misinterpreted as failures, causing the node to abandon pending channels.
Unidentified speaker (speaker_3) ·1:26:20
How to verify: Review LND PR #11479 on GitHub to see the change in handling broadcast responses and retaining wallet inputs. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Primary sourceBolt 12 receiver-side implementation in LND is nearing completion, but sender-side implementation is still needed.
Unidentified speaker (speaker_3) ·1:28:27
How to verify: Check LND GitHub issues/PRs related to Bolt 12 (BOLT 12) status and roadmap documentation. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Primary sourceLND PR 11480 prevents crashes when force-closing channels with static channel backups.
Unidentified speaker (UNKNOWN) ·1:29:00
How to verify: Review LND PR #11480 on GitHub to see the addition of a check rejecting local force-close attempts with static backups. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Primary sourceLND PR 11481 fixes a vulnerability where attackers could confuse transaction scanning by reusing transaction IDs.
Unidentified speaker (speaker_3) ·1:30:18
How to verify: Review LND PR #11481 on GitHub to see the change in scanning logic to include output script verification. For recent events, verify 2026-08-17 through 2026-11-17. Use another period only when the speaker explicitly names it.
Primary sourceDo your own research
- Verify the specific details of the truck sibling eviction bug in Bitcoin Core's transaction replacement logic by reviewing the relevant GitHub PRs or CVE disclosures.
- Check the current version of Bitcoin Core and Tor clients in use across the network to assess exposure to the Tor whitelist vulnerability.
- Review the Testnet 5 genesis block details and BIP 54 enforcement rules to understand the implications for miner compatibility and replay attack prevention.
- Examine the draft BIPs for anti-exfiltration signing to evaluate the technical feasibility and standardization of the proposed two-round commitment scheme.
- Analyze the impact of Rune minting chains on compact block reconstruction rates and network propagation efficiency as reported by B10C and Greg Sanders.
- Review Core Lightning PR 9610 and LDK PRs 5507 and 5532 to understand the fixes for HTLC amount overflows and cooperative close signature bugs.
- Check the status of LND's Bolt 12 implementation, noting that receiver-side implementation is nearly complete but sender-side and multi-hop features are still required.
- Verify the specific changes in BIP 34 clarification (PR 2342) regarding zero-padding for block heights 1-16 to ensure compliance with the minimum two-byte Coinbase field requirement.
Full transcriptexpand
0:00Unidentified speaker (speaker_0): Welcome everyone to Bitcoin Optech newsletter number 431 recap. We're going to talk about some Bitcoin core vulnerability disclosures in older versions. We have a draft bit for the anti-XFIL signing on hardware devices, the testnet 5 Genesis block, and also what was going on. Three months of poor compact block reconstruction. We have a delving thread on that. And our notable code and documentation changes and releases as well. Merch, Gustavo, and I are joined this week by Antoine, a regular of the show at this point. But Antoine, for folks who don't know, who are you? What are you working on?
0:43Antoine Poinsot: Uh my name is Antoine. I work at Chaincode Labs Lubs on Bitcoin Core, uh mostly on security security-related related topics, I would say.
0:50Unidentified speaker (speaker_0): Thanks for joining us. We're gonna jump to your news item titled Disclosure of Three Vulnerabilities in Bitcoin Core. Antoine, as I mentioned, you're a regular. You were on two weeks ago, that was 429, and we talked about Bitcoin Core's new sort of fast lane for easy-to-find bugs and disclosing them sooner. And that was around the 32.1 release and you also mentioned I think during that discussion that there were three older bugs that would be disclosed on the regular schedule. Yada yada yada. Here we are this is the news item encapsulating those three. Um maybe to recap the difference like what what what was the difference between last week's or sorry two weeks ago three vulnerabilities in and and these three? And then we can get into each of the three.
1:42Antoine Poinsot: Yeah, the So the disclosures two weeks ago were unanticipated. They happened to uh happen at the same time as the 32.1 release, but it it was unanticipated Anticipated because it's uh three vulnerabilities that were found. through automated LLM scans, which means that anyone can just point an LLM to the codebase and it would spit out these vulnerabilities. So for those, we adopted uh a new version of the security disclosure policy, which uh optimizes for shipping uh fixed uh binaries. fixed versions of the software to users as soon as possible. Uh and as we're doing that, uh we also full transparency publish the security disclosures uh at the same time immediately as soon as the binaries are are published. So that was the the three that were published at the same time as thirty two dot one, which were also fixed in thirty 31.2, one dot two. confusingly, and 30.3 or the 30.4, and 29.5. So we not only fixed it in the latest release, we fixed it in all minor releases uh
3:02for for for versions that are that were currently maintained. And these are just the regular uh security disclosure process for Bitcoin Core that Bitcoin Core has been using for over two years now. These were not found through automated LM scanning. They were found by regular security researchers and contributors uh to the project. And so they they went through the process of slowly fix them covertly, uh have the new releases out, and as uh as soon as the latest vulnerable versions goes end of life, we publish uh the details so as to be able to have as many people upgraded by the time uh that we release the details.
3:54Unidentified speaker (speaker_2): Right. So 29 uh the major branch 29 is end of life now. Uh these were fixed in 29 or before 30.0 at least. And um so now that the maintained branches are 30, 31, and 32. Uh the version 29 is end of life, and therefore the last unfixed version is end of life, and the disclosures happen two weeks after the release.
4:22Unidentified speaker (speaker_0): Alright, so what what do we have in here? We have one high critical. criticality and two medium. So maybe we can start with with the high, the truck sibling eviction bug?
4:34Antoine Poinsot: Sure. Um so the truck sibling eviction bug is um the so the truck proposal has a feature called sibling eviction. Normally uh a tr a transaction may only replace another if it conflicts in the input. It's spanning the same UTXO. And so you can RBF it and replace it with a new one. For some uh pinning protections, uh uh transactions can opt into a re a regime of uh policy rules whereby uh a transaction spanning spending another unconfirmed transaction can replace another one even if it doesn't conflict with it. So let's say you have a first transaction that has two outputs and this transaction has two child, one on each output. They don't conflict with each other. But if they opt in into this regime, uh uh the new one spending this transaction may evict its sibling. Yes, March?
5:37Unidentified speaker (speaker_2): Um to make it very easy, truck transactions, topologically restricted until confirmation, are only allowed to have one parent or one child. So they are always forming packages of two transactions. So when a truck transaction has uh when a solitary truck transaction has two outputs, it can only have one child transaction. So even if the two candidate transactions that we're talking about, the siblings, that each spend an output of the parent transaction, spend different outputs. Under truck rules, they're allowed to replace each other because the parent truck transaction can only have one child. So the higher fee rate transaction is accepted to replace the other transaction, even though they spend different inputs.
6:29Antoine Poinsot: Yes. So n not only it is it allowed, it's it must replace it. So that the other one must go if the new one arrives and is higher fee rate and everything. Um unfortunately, uh there was a bug in Bitcoin Core that sibling eviction uh was applied uh during the reord. a re-org. So if a block was mined, which Bitcoin call would not mine it by default, but if a block was mined with inside it uh transactions that opted into the truck regime, so version three, but the did not respect the topology of truck, which is had two transactions spanning the same uh the trend the same transaction through two different outputs in one block.
7:23Unidentified speaker (UNKNOWN): Uh
7:23Antoine Poinsot: Pikincore, when uh re-orging the block and reapplying the transaction to its MMPol, would apply the sibling eviction and would evict one of them. And if it so happens that the one being evicted also had a child, it would leave your mempool in an inconsistent state where you have a transaction that doesn't spend like that spends coins that don't exist. And it would lead, if you are a miner, to not be able to uh create new block templates until you restart your Bitcoin core node.
8:00Unidentified speaker (speaker_2): So the problem here specifically is let's say a truck package was mined in a block, but there was a competing block at the same height that did not mine the same truck package. And then if in the mempool there was a second child of the confirmed truck parent or and additional descendants, for example, when the other block got a child block, it would reorganize. roll back all the transactions that were confirmed in your previous chain tip, put them into the mempool, and then play forward the two blocks. And now the problem was that the truck transaction was was pushed back into the mempool, where we They had already a sibling and further descendants of the confirmed package. package. And sibling eviction was triggered in the mempool, and one of the two siblings got kicked out, for example, the one that was still in the mempool,
9:05because that one was going later anyway. And now the descendants were not evicted, only the sibling. And because uh in some sibling eviction, clearly you only have to evict one transaction because truck transactions cannot have descendants. So assuming a mempool that was in was fulfilling the invariants of truck, uh you couldn't have those descendants. So A during reorg we we uh removed some of the restrictions on the mempool because we could current we just push all the confirmed transactions back into the mempool and play forward. But sibling eviction was not disabled. But then also due to transactions becoming unconfirmed, the truck uh rules could be injured. And this led to a situation where we would have descendant transactions without their parents in the mempool. So the mempool was in an inconsistent state. And now uh the miner could no longer build b uh valid blocks if it picked any of those unconfirmed descendants that shouldn't have been in the mempool. And the state persisted until a node was restarted.
10:19Antoine Poinsot: Very clear.
10:20Unidentified speaker (speaker_0): And during restart, I guess there's a process that runs it wouldn't normally run during the nodes operation, which puts it in the consistent state. Is that right?
10:29Antoine Poinsot: Yeah. Yeah, we ditch the transactions with a valid parent.
10:34Unidentified speaker (speaker_0): Got it. Okay.
10:36Antoine Poinsot: Um should I continue down the list?
10:39Unidentified speaker (speaker_0): Yeah, we can go down the list. Maybe just a quick note. Um responsible disclosure. This is reported by Nicholas back in September of last year and great. Greg Sanders opened the fix a few days later. Gustavo, you actually covered this PR in newsletter 375. Neither merch nor I identified that it that it was a potential fix. Um Yeah, we totally, we we totally knew now. Uh huh. Yeah. Uh we had no insight into that. Um and so yeah, it it it looked normal when we covered it. Um fixed in in version 30, 29.2, and 28.3 over a course of a week.
11:22Unidentified speaker (UNKNOWN): Yeah,
11:22Antoine Poinsot: that's a that's actually a good point to discuss the report here because we often discuss the details of the bug because that's what's interesting, but it's also interesting how it was found and how it was reported. So this was found by Niklas Koger through his Fuzzamoto work, which is uh black box fuzzing. Uh in Bitcoin Core you have black box tests in Python where you exercise some scenarios in a high level manner, such as this uh peer sends that type of message, then a block is received, then that peer sends another message and there is a re-org reog and whatnot. And then so uh Niklas Nicholas extended this to using a fuzzing framework to test various scenarios in a in a black box manner with uh with his framework fuzzamoto. And that's the finding from Fuzamoto. So that's it's a direct downstream. Nobody found this bug in a review in testing before. Uh so it's directly downstream of Niklas' Nicholas'
12:24Unidentified speaker (UNKNOWN): work
12:25Antoine Poinsot: on this framework, uh which has proven its usefulness. And it's also a good example of leveraging AI, not for finding bugs immediately. Like you don't need to AI is good for security research and good for defense and security, not only because you can just ask it to find vonts, but it's because it can help you build frameworks for better. testing. Where before it would it was tedious to just go through all the scenario, go through all the boil plates, to write more fuzzing targets, to write uh an entire new framework. Uh in this case I won't go into the detail, but the black box fuzzing needs a whole bunch of VM restart and stuff. And the LMs LLMs are pretty good at doing this. And and and leveraging LMs there uh I I'm I'm pretty optimistic that going forward forwards we can prevent this type of bugs. Uh well lower the probability of introducing new bugs uh by having these techniques. Um
13:28Unidentified speaker (speaker_0): one more maybe comment slash question for you, Antoine. Are you aware since there was sort of this embargo on disclosing this one? uh it were the reports that you've gotten from like Loop and Red Team and whatever over the last six or nine months, did they also find this? Or was this still f hard to find by L LMs, even up till its disclosure?
13:57Antoine Poinsot: Um so it's it's hard to say so. Nobody reported it, uh besides Nicholas. Uh so it was reported uh over a year ago by Nicholas, and nobody's since ever reported it. None of the automated LLM scanning. Uh it's also higher severity than anything that we have publicly disclosed found by an automated LLM scan. Um it's also the case that if you uh check out the tag for uh a vulnerable release and point one of the new models to it and say find a bug in Reorg handling, it will find it. So we had uh we had Greg Sanders play around with that and he said that yeah new models can find it by like a very simple prompt. Like find a bug in real handling is not something it's not rocket science. So they can find it, but it's always it's always easier in hindsight. It's always easier to be like, yeah, now that we know about the bug and we ask an LLM,
15:06actually the LLM can find it. But
15:09Unidentified speaker (UNKNOWN): in
15:09Antoine Poinsot: the other direction, the LLM LM didn't find it. The counterpoint to this is that sure. but most of the automated LM scanning efforts are on master and on the latest releases that are fixed. So they did contain the fix. So much most of the scanning didn't go in previous vulnerable versions. So
15:30Unidentified speaker (UNKNOWN): you
15:30Antoine Poinsot: you can't know for sure.
15:32Unidentified speaker (speaker_0): Interesting discussion there.
15:34Unidentified speaker (UNKNOWN): I
15:34Unidentified speaker (speaker_0): think we can move to the next one, the Tor whitelist bug.
15:38Antoine Poinsot: Um yeah. So that one was uh found by Martin and myself. Uh Martin used to work here at Chaincurd and uh that's there is a whole bunch of context around this this one. Uh so I wrote a blog post about it in uh on my personal blog giving more opinionated uh context so it was at the height of the nuts debacle uh it was just around the Bitcoin version 30 release and at the at this time the the public discourse was a lot around number of nodes uh on the network like did nuts not have more reachable nodes did not have more total nodes on the network than Bitcoin Core? And there were a bunch of people that genuinely updated their core nodes uh to be to to Bitcoin NOTs. Notably uh we know that Start9, the company default to NOTs and sold a whole bunch of home nodes, the turnkey solutions. So a lot of the NUTS nodes were legitimate. But
16:53there was also people artificially in uh inflating these numbers by uh spinning up new nodes in the clouds or uh faking that uh creating new IPs pointing to the same node, such as you can fake the counts, but it's all the same node behind it. Um and so Martin just had a quick look. but it was like really offhand, just small investigation in the in what nodes could definitely be uh categorized as Sybil, as fake, um, because uh it would it would use the caching in the address gossip. So for uh Bitcoin Core and Bitcoin Nuts uh gossip IP addresses that run Bitcoin Core, that is, that are announced to them and they forward them. Uh but just always forwarding new addresses leaks a bunch of internal states of your node and can be used to infer the topology of the network. So Bitcoin Core query is going to cache the reply it will send to a request. for addresses. And uh this cache is for 24 hours. So the
18:10technique that Martin was curious to just use is to query addresses from a bunch of nuts nodes and see which ones would have over like after an hour, all these IPs would retreat retrend resend exactly the same. set of IP of addresses, which would definitely categorize them as having exactly the same cache, therefore being exactly the same node. Eventually he would find a bunch of clusters that did this in Bitcoin Nodes. So a few hundreds, definitely SIBL, probably a lot more that were just new nodes bootstrapped on the cloud. Um
18:50Unidentified speaker (UNKNOWN): But
18:50Antoine Poinsot: that's not the interesting part here. The interesting part is that in doing so he witnessed, he observed that all the the notes nodes on running behind Tor would just not cache anything at
19:07Unidentified speaker (UNKNOWN): all. And
19:09Antoine Poinsot: she's like,
19:10Unidentified speaker (UNKNOWN): why
19:10Antoine Poinsot: Well would we they did not cache anything at all? That makes no sense. Sorry.
19:14Unidentified speaker (speaker_2): So usually um in order to improve the privacy, nodes would remember which addresses they gave out for in address request for I don't know what time frame Antoine can fill that in, of course.
19:28Antoine Poinsot: Yeah, just
19:29Unidentified speaker (UNKNOWN): twenty four hours,
19:30Unidentified speaker (speaker_2): right? And uh so
19:33Unidentified speaker (UNKNOWN): w
19:33Unidentified speaker (speaker_2): one of the concerns would be uh if you keep rolling a new subset uh revealing about 30% of your new table and tried table, uh the the n nodes that you know about, if you keep re-rolling the set and telling about other nodes, you would leak in your entire um body of addresses. And that would make it easier for someone to observe how well they're doing to cybol
20:03Unidentified speaker (UNKNOWN): you
20:03Unidentified speaker (speaker_2): or eclipse you or learn about the topology that you might have with other nodes. So uh usually nodes only tell you about a small portion and only change that in larger um well, in in daily tact
20:21Unidentified speaker (UNKNOWN): back
20:22Unidentified speaker (speaker_2): to you.
20:23Antoine Poinsot: Yeah. So that's the that's the concerning concern and and and that's also what why we we're very not quite concerned, but very curious why would Nuts Node not implement this cache. Luke has a whole bunch of uh dubious changes, but this one has no rational at all. Like there is no reason why Nuts would do this. So we started investigating and we just couldn't find anything. There's also so we inst investigated there is a a big, big amount of change between Bitcoin Core and Bitcoin Nuts. Even at the time, so at the time Bitcoin Nuts was still a Bitcoin client. It was not uh a client for a different network that has forked, it was just a software fork of Bitcoin Core. But there was still a lot of changes that also received very little review. So I was like, I'm sure I'm going to find this bug in there somewhere in like there's like tens of thousands of lines of code difference between the two. And
21:27well, I didn't. But uh and then we tried to reproduce it and we couldn't reproduce it. I couldn't reproduce it locally. I I wrote some tests. And yeah, we just gave up at some point and went back to doing rail work. But Martin uh actually uh went and ran a more uh a further experiment overnight and when we come came back the the next morning we could see that none of the nuts node nodes on ClearNet uh were affected. A lot no of nuts nodes on behind Tor were affected. And none of the core nodes, whether behind ClearNet or behind Tor, were affected. So like so there is and we counterproduced it locally. And um Martin also m made the point that
22:25Unidentified speaker (UNKNOWN): the
22:25Antoine Poinsot: distribution of nuts nerds were was largely biased towards Tor. There was there were more core nodes overall, there were more core nodes on Tor than Nuts nodes on Tor, but amongst the Nuts nodes, the vast, vast majority of the user were behind Tor. And that's why he was looking into it uh in the first place, because it's so easy to s to cable cybers. cybel on uh uh on Tor. You can just like new uh new identities are free. So like could that be turnkey node solutions? Because the the turnkey nodes always have Tor bundled uh because uh because they abuse it to have remote control, to use it as a VPN for remote access to the node. Yeah.
23:13Unidentified speaker (speaker_2): Also it works as a whole hole punch. because if you can't get access to the open network uh from behind a firewall or router, uh Tor will always allow you to have inbound connections.
23:24Antoine Poinsot: Yeah, so that's my point. You've they use it for remote access. They re they use it to bypass the firewall. Um and and then we then also I pointed that whitelist permissions could like there was a difference in how nerds would handle the whitelist. They would um also give permissions to never cache the addresses. Could it be and yeah it was it was the case that most the vast majority of the node nerd in a box turnkey solutions whitelisted um the Tor peers. And so all Tor peers would have whitelisted permissions, which means you lift dos denial of service restrictions, you leave you lift privacy mitigations, and it we it was only on observable on NOTS nodes because NOTS also gave the set of uh
24:25permissions which left the address privacy mitigations.
24:30Unidentified speaker (UNKNOWN): Uh
24:31Antoine Poinsot: but it it was like all nerds that were affected, even the core nerd. On purpose, we didn't sorry, yeah?
24:38Unidentified speaker (speaker_2): So the difference was uh that they uh when the UWrite list appear, it would exchange Change addresses more often, presumably in order to populate the dbip110 BIP 110 uh nodes more quickly to to their peers?
24:55Antoine Poinsot: Uh that's a good question. So it was before at the time, uh it was pre-110. It was still on the mass psychosis timeline. We're past the core devil pedophiles that were just before the uh emergency temporary soft software. for it. So that was n that was not the rational. It was just a random look code change, like so many others in in notes at the time.
25:22Unidentified speaker (UNKNOWN): So
25:23Unidentified speaker (speaker_2): and then the node in the box uh setups usually just whitelisted the Tor demon or the low no, they whitelisted loc level host in order to have access with other services uh like um block explorers or
25:38Unidentified speaker (UNKNOWN): uh
25:39Antoine Poinsot: yes so so maybe the maybe I should uh maybe I should explicit uh the whitelist uh permissions is a set of permissions. You have address, you have relay, you have mempool, and when you just whitelist equal an IP, it will give a set of default permissions, but not all of them. And the difference between core and not NUT was that by default, NUT would give more permissions than core. So and that's why it was observable, because it would lift the caching on addresses as well. And the reason, uh, so coming back to the node in a box turnkey solutions, the reason they would do that is that some applications need the whitelisting. Uh so uh some applications Application running on the box need uh to be able to spam your peer-to-peer uh port. with request and not be disconnected. This type of things. So for instance, uh Bitspace Server, the the indexer of Bitspace Server needed it. Uh and so by default, they would just the configuration of all these nodes in the box would just include whitelist local hosts. What could happen? That's fine. That's localhost. But Uh it's trusted. And it turns out that in Bitcoin Core, and that's a bug in Bitcoin Core, or at least uh a big foot gun, uh
26:57Bitcoin Core would treat uh peers inbound Tor connections as coming from the address of the Tor proxy, of the Tor Diamond. And the Tor Diamond diamant runs on localhost. So it would whitelist all these which which makes no sense. Because shouldn't whitelist Tor addresses, which it knows the address doesn't mean anything. Uh it can know it's inside the node. So and that was the fix. The the fix was just don't apply the whitelist permissions to peers that you know are coming behind a a to from behind a tall proxy. Um and so that's uh that's what made it but uh made it um expose the bug. And and it was pretty widespread. It was thousands of nodes. I would say rough estimate probably five thousand breachable nodes were all completely doseable and with no was privacy mitigation lifted.
27:55Unidentified speaker (speaker_0): You mentioned the different parties involved or different projects involved here, the the node in the box, uh knots. So how did you handle disclosure or not with with those parties?
28:09Antoine Poinsot: Um yeah, good question. So uh despite my criticisms of uh of Luke, I did uh well we did because it's uh it was found by Martin and I, but I I was the one who pinged Luke. Uh I told Luke because so many like it represented ninety percent or eighty percent of Nerds Node. All Nuts Nodes were dustable and and vulnerable to this. Because many of these people just were just discontent with Bitcoin Core and not necessarily like think people are evil or whatever. I I did tell Luke so he could fix it for these people, even if I personally strongly disagree with Luke's worldview. So I did this I dis disclose it to Luke, who was reasonable in the handling of the of the embargo. He said he would re uh respect the embargo and he did respect the embargo, which was that was just a surreal experience for me, where he would publicly insult me. of anything on Twitter and then in private in he would be almost reasonable in DMs. And I couldn't say anything. And
29:22also you had all the Nuts uh a subset of the Nuts users were very act terminally online and like using oh I upgraded my Nuts node as if it was owning the core devs. So they would just like fuck you core devs I upgraded notes and I'm like yeah, but I say you're not owning me, you're upgrading to the vulnerability I I disclosed. But I couldn't say it. So it was it was a very, very weird experience.
29:49Unidentified speaker (speaker_2): Yeah, I've I've had the same experience with Luke where um he in different contexts he just behaves completely differently. He just sort of boxes things and uh like he's he's different people in different contexts and they have nothing to do with each other. It is sometimes the feeling.
30:09Unidentified speaker (speaker_0): Anything else on that one or should we move to the compact block stall one?
30:13Antoine Poinsot: No, that's uh I I think that's it. Uh if you want some of the details, there is my there's uh a blog post, but that's basically what I just described, is what I wrote on my blog. Um last one uh is uh blocks processing stall, uh which so the impact is that uh a malicious spear could stall you from processing new blocks, uh could stall you for 10 minutes, and if under more constraints constrained conditions, they could even stall store you forever. So that's uh that's harder to exploit, but it's a pretty high impact. Um the reason for this bug uh is that we Bitcoin Core would uh implement how you'd say uh we don't want a single peer to store your block download. So we if if one of the peers is stalling you, we're going to request the block from other peers. But there is always a trade-off where you don't want to ask too many peers, or if you
31:23already have a block in flight from one peer, you don't want to increase the bandwidth, uh, especially if you have a low bandwidth, of asking it from more peers, which is going to slow down the download of the uh earlier peer. So there's a whole bunch of logic to avoid doing. this in Bitcoin Core, and it so happens that a few different unrelated facts together put together, and the core thing was that uh you could malleate the block, the witness part of the block, and Bitcoin Core would not check it before updating the state of the in-flight in flight blocks and the block download. So you could train. trick the victim into clearing the state of download, uh, but also not sending the right block. So you would malle at the block, um send it, the peer would be like, Alright, that's peer is sending me the the stuff, so I'll just not request it from more peers so I don't shoot myself in the foot, but actually they would shoot themselves in the foot because then this peer would just store stall for ten 10 minutes.
32:27And and then uh after the 10 minutes timer, the victim would reissue a new a new request. And if um if the attacker could occupy the three peers that are used for the parallel block download, the the new request will always go to the attacker who could just restart the 10 ten minutes timeout forever and forever and stall stole stole stall the peer. The this was discovered by Eugene Siegel. Um I think he discovered it through code review. An ancient wisdom uh these days and he yeah he emailed the Bitcoin core security list in April uh twenty twenty-five. five. Initially uh that's an interesting case as well. Uh I I don't know if we I don't think we even say it in the in the advisory, but initially you filed it as a lot of severity. Because our understanding was that uh our misunderstanding was that you would only be able to stall the the node if you had all its power block download connections, which is already an
33:34assumption that you make. It's already an assumption in the node, so it's not part of the threat model. It's like not great that you could stall it forever, but wasn't quite a big severity issue. But you could still stall the node for 10 minutes with only one of these peers, as long as you are the one the first to announce the block to the peer. And if the if the node was running in blocks only, which is a fairly it's a non-default but fairly common configuration, you would just be able to store them uh with a single peer. So right before the release, so a low severity issue is disclosed as uh two two weeks after a fix is uh made available. And so it was um yeah so I don't remember when we made the release. I think we fixed it in twenty twenty-nine nine. Uh or or thirty, but just right right before this release, I think it was right before thirty in uh in in September or October 2025, went through it through it again, wrote the advisory, and I was like, wait,
34:40writing the advisory uh it's higher impact than I than I expected, brought it back to the to the security team and we we bumped it to medium severity. So we put it back in the tracker, actually not disclose it, wait another year because bumping from low to medium means that instead of disclosing immediately, you disclose in three release cycles from now. And each release cycle is six months. So it's pretty pretty long. And so after all this time it's finally public. It was fixed a long time ago. I think it was yeah it was fixed first in the major version of 30, but uh a fix was also backported to the to the 29 series.
35:22Unidentified speaker (speaker_2): Right. The the uh PR was merged on June 30th, so uh that would have been uh for the October release, which would have been 30. So the difference between a low severity and a medium and high severity is two releases. release cycles later. Uh once the latest uh version without a fix goes end of life. Uh so that's two cycles after it first gets fixed.
35:51Unidentified speaker (speaker_0): Curious about these three. Are you aware of them being exploited in the wild? Um I guess probably the first one would be the most obvious. one if it if it had been, but um anecdotal reports on the others.
36:08Antoine Poinsot: I'm not I'm not aware. Uh but all the big miners have upgraded. So I I did check with most of them. Uh all the big miners have upgraded past this version. It would also have required um creating a reorg. So it we need mining power. So it's also not unlikely. I it's pretty likely that once most miners have upgraded uh that someone is not going to expand mining power to try to trigger it when it's probably not going to reward you anything.
36:44Unidentified speaker (speaker_2): Actually, I would disagree with agree Mike. The one that is most likely to be um uh uh exploited here is the inbound Tor Connections whitelisting, um which we also heard was exploited. Martin used it to to uh or like not as an exploit, but he discovered it by the the exploitative behavior being uh visible on the mainnet. So in in a way all these nodes um basically asked for being exploited uh the whole time they they had that configuration.
37:19Unidentified speaker (speaker_3): So
37:19Antoine Poinsot: that's true that he unintentionally exploited that behavior, but we also intentionally, once we knew it was a vulnerability, did not use it to observe what nodes were vulnerable. We were very curious to know what what's the portion of Bitcoin Core nodes that were vulnerable. because from the the first scan, none of the core nodes are vulnerable because none of them disabled the address caching. But we could have just used another one, like send a mempool message and see which ones disconnect us or not. Those that don't disconnect us would have been the vulnerable ones. But we decided not to do it for obvious reasons at the time, not to like come as Bitcoin core devs exploiting uh a vulnerability in Bitcoin, but also just there is a difference.
38:12Unidentified speaker (UNKNOWN): And
38:12Antoine Poinsot: like when you stumble upon something, you do a normal, legitimate experiment, and it turns out something, and then once you know the details, you know it's a vulnerability and it could be exploited to DOS those nodes to intentionally do. something related is trickier. So I wouldn't say Martin exploited this.
38:31Unidentified speaker (UNKNOWN): Yeah
38:31Unidentified speaker (speaker_2): Martin.
38:34Unidentified speaker (UNKNOWN): No,
38:34Unidentified speaker (speaker_2): no. So he stumbled upon it, but those nodes were were highly it's much easier to exploit and it is it was so widespread that um I would have said that this one would have been the easiest to exploit or the most likely. And um basically the by being exploitable it became visible in the first place.
38:58Antoine Poinsot: Yes, I agree that it would be easier to exploit and most likely I have some stats on my blog posts, but the share of nodes that are still running a version behind Tor that is vulnerable. I think it's something like twenty percent of the network. Thirty thirteen percent of reachable peers are still running a version without the mitigation behind Tor. So they might be vulnerable. You don't know if they set wait list equal something, but they might be.
39:28Unidentified speaker (speaker_2): So does this Bitcoin core nodes? Because uh
39:31Unidentified speaker (UNKNOWN): my
39:32Unidentified speaker (speaker_2): impression was that the NOTS nodes upgraded uh much more quickly and drastically.
39:39Antoine Poinsot: That's uh the combination of core nodes and not nodes, both of them before upgrading to to uh to a release that contains the fix.
39:49Unidentified speaker (speaker_2): Yeah. Well, especially among that crowd, 30.0 was not that popular.
39:54Unidentified speaker (UNKNOWN): Yes,
39:55Antoine Poinsot: but even b for Bitcontore, you could get the fix without having to update to to 30 30. It was backported to 29.
40:01Unidentified speaker (speaker_2): Right. Okay. All right. Let's I think we can wrap the the security disclosure discussion. Do we want to move to testnet five?
40:12Unidentified speaker (speaker_0): Yeah, that sounds good. That was a good discussion, though. Thanks, Antoine. But we're going to keep you around because you have a dotted line on this next news item. Testnet 5 Genesis block to be mined. We published on Friday. So the to be mined has actually happened, but let's recap it. Um so we've talked about this for a while. Um the potential upgrade to upgrade set a separate network, testnet 5 network, um, to replace testnet 4 and some of the issues that we've discussed over the years with that. We covered that in 409 and 412. But if you have a new test network, you need a first block. You need a Genesis block for Testnet 5. Historically, I think developers just mine one and publish it, but AJ posted a plan to do it in the open instead so that there's nobody who gets a head start, even though these things are meant to have zero value.
41:15People have attributed value to them over the years, which is another motivating factor to have a new test, and that is to stop that sort of behavior, I guess. And he po he posted, um, I think it was uh mid or early last week about the plan to use block uh nine 975,744, hundred and seventy five thousand seven forty four which was expected November 13th, thirteenth, which was. Friday, and wanting wanting to use the um hash of that block as the uh commitment in the Genesis block for Testnet five so that there couldn't be any tampering. And this is sort of the Chancellor on the brink of bailouts, but using um, you know, Bitcoin block hashes for that. Now the reason to announce that and sort of try to shepherd people in to mining that Genesis block was that there's also a change in testnet five's minimum difficulty, which means that it's about a million times higher than Testnet four's minimum difficulty. And so in order to get that block mined, it could
42:20require some ASICs. So that's why AJ made the post as sort of like a call out to people to pool to m to mine that. Um I can pause there, Merch or Antoine, and we can start we can talk about 54 as well.
42:36Unidentified speaker (speaker_2): Yeah. Um I I looked a little bit at the block progression. So when you say November 13th, you also have to mention a time zone. In UTC, it was the Genesis block was uh mined at 5 five in the morning on the 14th. That is uh UTC. And in 14 hours and a few minutes, the first difficulty period raced by. And then actually the second difficulty period after the difficulty increased uh to 4x, it uh went even faster. It took only 10 hours. And so we're on the third difficulty period in Testnet 5 already, with a little over 5,200 blocks. And uh I found a block explorer already. Uh one interesting thing is that one-third of all blocks were mined by P2Pool.
43:32Unidentified speaker (UNKNOWN): Uh
43:32Unidentified speaker (speaker_2): sorry, P2pool P2 pool V2, which is a new project to organize mining in a decentralized fashion. This is a mining pool that well, not mining pool, a uh side chain that mines blocks together, I should say. They uh they have their own chain where they uh a shared chain where they um build a blockchain to contribute work. and then everybody puts the transactions that are picked in the share chain into their block templates and whenever a block is found the block directly pays out the p2pool v2 participants so uh apparently the people working on that project thought that testnet 5 would be a great way of testing it and they got a third of all blocks so far.
44:30Unidentified speaker (speaker_0): It should be noted that this mining of the Genesis block, now there's values to actually put in for placeholders that were in BIP 95 that somewhat that specified the rest of Testnet 5. Um And so obviously that BIP's updated, but those same parameters need to actually be put into node software. Um and there's some other things that are in testnet five as well. What what else could be in there, Antoine?
45:02Unidentified speaker (UNKNOWN): Uh
45:02Antoine Poinsot: testnet five and follows this Bib fifty four since the Genesis, from the Genesis. So all the Bib fifty four new consensus roles uh are in Fallout's falsesses since uh Genesis and it's uh testnet five would be a useful indicator of miners being able to deal with the with these new consensus roles in the mining pool software because by being able to mine on test net five to just may uh make the information public that the mining pool can be adapted to uh to set the lock time to the to the block height and what have you to be compatible with BIP fifty four?
45:45Unidentified speaker (speaker_0): Now BIP fifty four there is a pull request to Bitcoin Core that is open currently, correct? So what are the miners that AJ called call to action? Um how are they ensuring compatibility? with Bit54?
46:05Antoine Poinsot: Yes, so Bitcoin Core has been BIP54 compatible for multiple versions. I think since twenty nine or even version thirty if you want to be exactly accurate. So miners running Bitcoin Core as far as twenty 29 nine should not be uh kind of uh worried about mining an invalid a block invalid to B54, except for actions that they take on their side of the stack, which is uh on their side of the stack is the generation of the coinbase transaction. Uh and so that's the that's the part that they need needs to uh to update uh to uh to avoid mining B54 bit for in incompatible blocks. And so that's the part that would if they just connected the infrastructure without updating it to test net five, it would just show up as your mining invalid blocks. Which is great because you want this to happen on a test network uh so that they can update without losing any money. And then once they do, uh the whole public gets the public gets the the signal that they have.
47:16Unidentified speaker (speaker_2): So concretely in BIP fifty-four we're proposing, or rather Antoine is proposing, that um miners must set the lock time to a block height um adjacent number, and this will uh cause all new blocks to be incompatible with previous blocks that appeared on the chain. Uh so there are a few blocks that preceded the activation of of BIP30 and BIP34, and these uh blocks could
47:54Unidentified speaker (UNKNOWN): uh
47:55Unidentified speaker (speaker_2): have their coinbase transactions potentially exploited. But sorry, I I said that incorrectly. By setting the lock time in the Coinbase transaction, uh the coinbases must be different because none of those uh old blocks that could be replayed had lock time set and thereby um the BIP54 rule requires all coin bases in the future to be unique.
48:21Unidentified speaker (UNKNOWN): What
48:21Unidentified speaker (speaker_0): happens if someone on this test testnet net doesn't adhere to one of the BIP54 BIP fifty four rules? Like because it sounds like Antoine, you're saying there's forward compatibility from versions back in Bitcoin Core, but right now people are violating that on mainnet, if you if you will. Um so what happens if it's violated on testnet five? Is there there's there's some enforcement mechanism of the rules that isn't present on on mainnet?
48:48Unidentified speaker (UNKNOWN): Yeah,
48:48Antoine Poinsot: the nodes would refuse to the block. The consensus rules of BIP4 are always enforced on testnet 5. So if a miner uh who is forward compatible by all other rules still creates a coin uh block with a Coinbase transaction that doesn't set the unlock time correctly, then when they broadcast this block, all the uh other testnets testnet 5 nodes on the network will ignore the block and they would lose the reward even if on testnet the reward isn't worth anything.
49:22Unidentified speaker (speaker_0): I did have some notes here about updates since the newsletter, um but I think virtue covered that pretty well. And I think we have a BIPS PR maybe later in the newsletter. Um So anything else on this item? Antoine?
49:39Antoine Poinsot: Uh I'm checking the stats of the pool of AJ right live, and one peta hash just joined the network earlier this morning. So there is one point five petahash per second currently mining on testnet five. Uh and if people want to run testnet five, you can uh compile the pull request by Fabian Jar to uh Bitcoin Core. It's not yet released in in a Bitcoin Core release. Uh and I think some of the people involved in the testnet 5 effort are going to make binaries available, which will be the latest Bitcoin Core version, plus the testnet 5 patch set so anybody can just run it.
50:20Unidentified speaker (speaker_0): Excellent. Antoine, thanks for joining us today. We appreciate your time.
50:25Antoine Poinsot: Thanks for having me. See ya. you.
50:27Unidentified speaker (UNKNOWN): We're
50:27Unidentified speaker (speaker_0): bouncing around the news section still. We're going to go to draft BIPS for anti X Fill signing. Connor wasn't able to join us to walk us through his idea here. So Merch and I will do our best. But this one's related to hardware signing devices and the fact that every signature needs this random number called a nonce, and the device fixes. picks it. You maybe don't know how it's picked. So a device with bad firmware could, in theory, pick nonces in a pattern that would leak your seed or other information through signatures, and those signatures would look totally normal on-chain. So this is one method of exfiltration, which is like getting the seed off of the device and out into the public. Um,
51:14Unidentified speaker (UNKNOWN): there
51:14Unidentified speaker (speaker_0): is an idea, and we've talked about this on the show, even going back to double-digit newsletter days of anti-xfil signing. Um, and there's a fix in and and other some hardware signing devices have this in place, but the idea is that have your host, so that could be your computer or your phone, add its own randomness to that nonce, and then make sure that the device actually used that randomness so that the device can't covertly leak that information out to an attacker. Some, as I mentioned, some manufacturers do this. I think Jay does this right now. Um, but Connor posted two draft BIPs to the mailing list to standardize the way that folks can do this. And so there's a there's an a initial first draft BIP that comes. covers the signing itself and that covers Schnorr signatures as well as ECDSA signatures. And it's a two-round protocol. First one that host picks the randomness and then sends only a commitment to it. And then in that second round the host reveals the actual randomness. Yeah, March.
52:20Unidentified speaker (speaker_2): I think the hardware device would also have to commit to its randomness because if the hardware device can change its uh part of the
52:31Unidentified speaker (UNKNOWN): nonce
52:31Unidentified speaker (speaker_2): after receiving from the host, it would still be able to leak information.
52:36Unidentified speaker (UNKNOWN): So I think
52:36Unidentified speaker (speaker_2): the the two rounds are both sides commit uh to say a um a hash of the nonce and then both sides uh reveal or use well the hardware signer uses the actual nonce after the host reveals it. And then the host can double check that both of those um commitments were used.
53:02Unidentified speaker (speaker_0): Yes, and uh and so that the two-round process prevents this idea that if if this potentially malicious device saw the host's randomness first, then what if it could do is sort of like keep trying nonces until it it embedded whatever that secret information that it wanted to in there. So that committing that first round of commitments takes that potential attack away. So that is what the first draft bit handles. And then the second draft bit handles the ability to have per input three different features. fields for in in PSBT that actually carry the information required to do those commitments and exchange that information.
53:48Unidentified speaker (speaker_2): Basically an extension to PSBT to support this through the PSBT process. So PSBT sp specifies a number of fields that the different participants can. fill out. And by having fields there for denunce commitments and then denounces, presumably, I didn't read it in detail yet, they would be able to have this with more parties or with hardware devices that uh implement PSBTs in order to communicate with the host device.
54:22Unidentified speaker (speaker_0): So that's the idea from Connor. And in some ensuing discussion. discussion, Shores has actually an experimental draft for one scenario here. I think it's a single signer taproot key path signing. And I think there's some divergence between sh what Shores is doing and what Connor is doing here. So I think Shores plans to align his prototype implementation or his experimental uh implementation to Connor's spec. And one other thing. that I wanted to pull out from the write-up and discussion was that the author says that the crit cryptography has not been audited. And so he is asking for review. So that's a call to you all, listeners, to see if you can take a look at this. Yeah, March.
55:08Unidentified speaker (speaker_2): And I think Mike mentioned it, but to make it very clear, this is a protocol that is already in use by uh several I think it's Jade and uh Bitbox that already have support for this. Uh it just hasn't been uh specified fully. So this is essentially a BIP that tries to specify a protocol that's already in use and make it broadly available.
55:33Unidentified speaker (speaker_0): Maybe one other asterisk here. I believe this approach only covers single signer only. So things like Music 2 or Frost are out of scope for this. Obviously, that could be follow-up drafts or BIPs as well to handle those and mirror those. Okay. Anything else on that one, Merch or Gustavo? Our last news item this week: continued discussion of compact block reconstruction stats. When we have this continued discussion, pre- prefix in our news items, it means we've we've covered this previously. I think we've covered this one twice before. This is a delving thread from B10C that actually links off to some other discussions, but the idea is compact block reconstruction rates over time. And um B10C has his Bitcoin BNOC Broup group that is a network uh open collective, which is essentially a bunch of a bunch of volunteers looking at behavior
56:33on the network. And he, of course, is one of those volunteers. And he reported in September that his nodes could only build one percent to five percent of blocks during that time without asking for anything. So without, you know, merch I think uses. this table of contents for the block. In the best case, you already have all of the ingredients that go into that. And worst case is you you don't and you have to keep asking for more additional information. B10C noticed that there was this period of time where he didn't seem to have the ingredients for those blocks in a regular cadence and he was required requesting about 100 kilobytes of transactions per block to fill in the gaps of that table and table contents. After that, Greg Sanders came in and said that nearly all the transactions that his node was missing belonged to these chain of rune mints. We're starting to get a little bit outside of my knowledge about how these minting protocols work with these meta. protocols on Bitcoin. But essentially these mints or these token
57:43mints were reaching mining pools minutes before the rest of the network, which caused then node operators to see this inability to reconstruct the blocks through um compact blocks. I have a bunch of other information here, but let's let's let Merchill Mirchal pine.
57:59Unidentified speaker (speaker_2): Uh I think there was a um second factor here. So A, all those uh mints were being sent at someone was trying to minimize the on-chain fees to get those mints mined. Uh they made long chains and they sent them at uh 0.1 sat per V by the absolute minimum fee rate. And then uh they had these long chains of transactions linked with pay-to-anchor outputs. Pay-to-anchor Pay to outputs. anchor outputs, of course, are anyone can spend. So these chains were trivially broken by other peers that just spent pay-to-pay-to-anchor output in a different way. And apparently the pay-to-anchor outputs had a small amount of money, but a big enough m amount of money that if you just created a second transaction that spent all of that pay to anchor uh output to fees, it would uh potentially increase the fee rate of, I assume, a single parent transaction to four sats per V byte, which then of course would be a lot more attractive to mine.
59:11But
59:12Unidentified speaker (UNKNOWN): the
59:12Unidentified speaker (speaker_2): RBF rules require that you actually increase the total amount of fees and not just um uh reshuffle them. So um the pay to anchor outputs I assume were spent down in the later transactions. They were just carrying the money to uh fund the the rest of the chain and the fees did didn't actually go up by replacing the pay-to-anchor output with another transaction. It just made the chain of transactions have less weight. So
59:49Unidentified speaker (UNKNOWN): uh
59:50Unidentified speaker (speaker_2): depending on which chain of transactions was seen first, nodes would only accept one or the other because they ha paid the same amount of fees but didn't uh properly replace each other.
1:00:02Unidentified speaker (UNKNOWN): So
1:00:03Unidentified speaker (speaker_2): same amount of fees but lower weight, of course, has a higher fee rate, but it doesn't fulfill the absolute more fee requirement for an actual replacement. With the transactions being broadcast without an uh announcement, so usually when you send a transaction, you first uh send an inventory m message to your peer, hey, I have transaction TX. ID. Uh do you want it? And the other node replies either not at all if they have it already, or uh get TX. And uh for a long time now, uh we've been because some old nodes had had not adhered to the announcement, um, we have been accepting transactions just being broadcast directly at us. uh, which we sometimes talk about getting rid of. Um so uh whoever was doing those RBF replacements, or well actually I don't remember who was doing that. I think the chains themselves were just being broadcast at peers without announcements. And uh assuming they were broadcast to a lot of nodes, that's how they probably got. to the miners so quickly.
1:01:17Unidentified speaker (speaker_0): I read that as well, the announce uh the broadcasting without announcement. What does that do in this scenario? Or is it also just an interesting thing that happened along with this minting process?
1:01:34Unidentified speaker (speaker_2): Um I guess it wouldn't have changed who accepted it for modern nodes because um
1:01:43Unidentified speaker (UNKNOWN): uh y uh
1:01:44Unidentified speaker (speaker_2): giving the announcements and then the peer would have said, Hey, I don't have this, they'd um gotten would have just got them one by one. But I think you would have had to announce them in the right order for that to work properly. Otherwise uh you would um sort of run into uh create orphan transactions in the other people's nodes. Um so just playing the whole chain directly uh would save a bunch of round trips and might just expedite it. I I'm not firm on that. That's speculating.
1:02:21Unidentified speaker (UNKNOWN): Okay
1:02:21Unidentified speaker (speaker_0): so we had this this chain of token mints using pay to anchor and that would then have another pay to anchor and an o oper turn, and then another pay to anchor and an operaturn and another pay to
1:02:33Unidentified speaker (UNKNOWN): an
1:02:33Unidentified speaker (speaker_0): opp return. And
1:02:34Unidentified speaker (UNKNOWN): like
1:02:35Unidentified speaker (speaker_0): you said, it's anybody can spend. So other peers would then jump in in the middle of that potentially and and and then
1:02:43Unidentified speaker (UNKNOWN): uh nice pay
1:02:44Unidentified speaker (speaker_2): to anchor output you have here. Wouldn't I rather take that as fees? Thank you.
1:02:48Unidentified speaker (speaker_0): And so that's happening, you know. sort of across the network in a non-deterministic way. And so then, yada yada yada, you get what B10C and and Greg saw, which was poor compact block reconstruction rates because their node happened to see XYZ version of this scheme, whereas what ended up being mine mined was something different that they that they weren't aware of. and so they needed to go ask for that additional transaction data. Um okay. So as as all these things do, it sounds like this behavior stopped uh on October 8th, according to the thread. And then subsequently
1:03:35Unidentified speaker (UNKNOWN): the
1:03:36Unidentified speaker (speaker_0): compact block reconstruction rates recovered based basically that same day.
1:03:40Unidentified speaker (UNKNOWN): Um I
1:03:41Unidentified speaker (speaker_0): think there was also something from B10C's post.
1:03:44Unidentified speaker (UNKNOWN): I
1:03:44Unidentified speaker (speaker_0): don't think we had it in the newsletter, but he says that the person doing this
1:03:49Unidentified speaker (UNKNOWN): was
1:03:49Unidentified speaker (speaker_0): after these uncommon good runes mints and that the um pierce sweeping peer used the user agent P2A burn A colon call in one dot zero. And so there was actually
1:04:00Unidentified speaker (UNKNOWN): a
1:04:01Unidentified speaker (speaker_0): um a operator on the network using that as the user agent for their node.
1:04:08Unidentified speaker (speaker_2): So
1:04:08Unidentified speaker (UNKNOWN): the
1:04:08Unidentified speaker (speaker_2): interesting thing is, of course, usually a pay-to-anchor output is intended to ensure that the parent transaction will get mined. Vestigial output, or actually not vestigial, an output that will be picked up by yourself in the next transaction where you bring the actual fees. But if someone else takes the pay to anchor output and spends the um creates a child that that gets confirmed more rapidly than yours, your transaction still gets confirmed. However, this is an unorthodox uh use of pay pay-to-anchor to anchor, of just making outputs as small as possible. because pay-to-anchor outputs only have four bytes. Sorry, uh eight bytes for the amount and then uh the script portion of the output would would take four bytes. Um so twelve bytes in total instead of the usual uh uh forty-three forty three bytes for a pay-to-tap pay to taproot root output. So if you're trying to minimize your blockchain uh footprint, you might use pay to anchor, but of I assume they noticed at some point that all their chains were being disrupted and that was actually
1:05:25causing more trouble than than this these minuscule savings at point one sat per V byte were worth and
1:05:35Unidentified speaker (UNKNOWN): well
1:05:35Unidentified speaker (speaker_2): I didn't look but presumably they'd they'd um uh move to outputs that are actually um in some way tied to to their own spending and that way they can control their chains better.
1:05:51Unidentified speaker (speaker_0): That's probably good on this mess of an item um it's interesting that you know you you do have folks you know monitoring the network for this sort of thing now this particular scenario was a annoying but not entirely debilitating to the network. But it's good to have folks monitoring the network for any sort of activity that that um may impact the the Bitcoin network, especially as we're in this crazy AI era where there's a lot of um exploitation going on so kudos to the BNOC team for keeping an eye out for this and keeping us abreast of it.
1:06:32Unidentified speaker (UNKNOWN): That
1:06:32Unidentified speaker (speaker_0): wraps up the news segment. We can move to releases and release candidates. I'll turn it over to Gustavo for this portion
1:06:40Unidentified speaker (speaker_3): excellent. Thank you guys. So we are we have three releases this week. Um we're well, three release items since a few items package uh two releases each. So the first one is LDK version 0.3. This is the fourth release candidate uh for this next major version. We covered the previous release candidate and newsletter 426. Um, this has a few features such as uh RBFs are now possible for splice transactions, and there's also n anchored channels are now negotiated by default. Um also upgrading invalidates previously issued Bolt 11 invoices since the payment metadata uh the the containment of payment metadata has changed. And and there's also multiple backward compatibility changes. So developers uh and users are are invited to review the release notes that come with it. If you want additional details, I think in Newstead of 426, we did discuss it a bit more. The next one is uh more important because it's a security release for both the 0.2 and 0.1 branch, specifically version 0.2.8 2.8 and version
1:07:590.1.14. Uh both of these fix. vulnerabilities that could lead to a loss of funds or a special DOS attack on the node. We didn't add them as individual items in the Notable Code section because they came a bit after the cutoff time. So they will be covered in more detail in the next week's uh section. But briefly, for example, how could a node lose funds? Um for example, it's uh an an attacker, a malicious channel peer could prevent a node from claiming a forwarded payment after a forced close or by causing it to sign a channel state that it wasn't properly monitoring. So this these are the type of edge cases we've seen so so many times already over the past few weeks uh acrosslining across lining and and they're not they're not stopping. So users are very invited to upgrade. Version 0.2.8 also has additional fixes, such as a potential overpayment vulnerability, specifically in excessive routing fees when paying static Bull
1:09:0712 invoices. And it also has an attack against LSP2 services that provide just-in-time channel. channels. There's also a cooperative close fix that we're gonna discuss separately in the Notable Code section that both of these releases have. Next item comes from the LND repos. So version 0.21.8 beta and 0.20.8 beta are new maintenance releases. Um I think just last week. we were covering the latest LD security releases, and now we have another batch. Actually, I think we've done like three weeks in a row of new LND security releases. So once again, users are very invited to upgrade since uh it has multiple vulnerabilities, almost all of them around AMP, invoice recovery, channel funding, uh restore channeled force close. we're gonna be covering below in the notable code section. Uh but there's once again there's just so many different bug fixes included in these releases, which is why it's so important for users and operators to upgrade to the
1:10:16latest versions. Now we move forward with the notable code section. The first one comes from the Bitcoin Core repository 36142. So this is about a fix on command injection through the Tor control endpoint. So the way this works is that the first Fang Bitcoin Core when Bitcoin Core creates its onion service, the Fang this it sends a message over the control port uh called add onion. And this asks Tor to generate a key. And Tor replies with a private key. And previously, Bitcoin Core would simply not validate at all this private key that the control port r answered with, right? It would just fully trust it. However, the vulnerability is that uh, for example, a temporarily compromised uh Tor control port could return a private key that included uh what could potentially be arguments. for the add onion command. So because later on, because Bitcoin Core writes that key and persists keeps that key and persists that key, but the problem is that Bitcoin Core on every later uh every on every later attempt, it will start um by reading the
1:11:35file back and sending it back to the Tor control. port. For example, add onion plus the private key. But if the private key is uh encoding or including or composed by what could be arguments that could be added to add onion, uh that's how the vulnerability gets exploited. And um, like for example, if an attacker fully and permanently controls the control endpoint. uh injection gains very little. But uh the real value for an attacker is if the malicious response gets persisted to disk, uh, but for example, the attacker only had a temporary man-in-the-middle position. Uh, so he could temporarily take over the control port ship shi uh ship a specific. private key that includes some arguments that would later on get always persisted to this, and every time uh Bitcoin communicates to the control port, it would play this private key that potentially included arguments. So I looked into it, and for example, an argument that could be that could have an impact would be setConf. So if you were able to include setconf inside this composite. compose private key, you could then change the Tor
1:12:53config, for example, add port mappings or exposing services. And also Save Conf would make those changes survive with restarts. So now the fix is for Bitcoin Core to validate the keys before saving or reusing them to ensure that none of none no key has uh a control, command, or argument. uh included in the key. The next three items are from the BIPS repository. The first one, BIPS2251. This is about a new uh BIP uh 394, which is a draft specific specification for the raw raw TR output script descriptor, uh which we had previously discussed in newsletter 499. 419. This has been previously implemented in Bitcoin Core since version 24, precisely was covered in newsletter 214, excuse me, 213. So has been included in version 24. And now there's now an official specification about
1:13:55this output script descriptor type, which unlike the TR uh output descriptor type. this one takes the output key directly without applying a tweak. And the issue with it, and the reason why it's not been recommended, is that it can there's no way to prove that there's a spending path, there's a secret spanning path. So for example, if someone else gave me this um output script descriptor, output script, yes, uh output script descriptor script. excuse me, I would not be able to prove that this uh other person didn't include a secret spending path.
1:14:33Unidentified speaker (speaker_2): Yeah, uh
1:14:34Unidentified speaker (UNKNOWN): let
1:14:34Unidentified speaker (speaker_2): me jump in there briefly. So we already have a taproot uh descriptor and that one will give you the internal key and the hash of descriptory the script tree optionally. Otherwise uh it will use a nums point. And um so if someone receives a TR descriptor, they have the full view of whether there is a script tree or not. And usually if the I think if the script tree is uh provided it also gives you the entire structure of the tree. So you learn about all the leaves. What the raw TR descriptor allows is uh to collaborate without revealing the internal structure of the script tree. So you could use this, for example, if you want a watch only wallet to be able to scan for your outputs without actually having the internal tree structure uh on that m on that box. right? So you could use it to import a watch-only descriptor to your um
1:15:42server or something and just watch for your outputs coming in. Um or well, I guess you you do need to know who you're collaborating with or uh use it internally. Otherwise it's unsafe uh because there could be script paths where the other party spends by themselves. Um yeah. but it it's useful for for privacy reasons.
1:16:07Unidentified speaker (speaker_3): Thank you, merch. Great extra context. Next item, the again once again from the BIPS repository, PR2347 updates BIP 95. So this is related to what we were discussing earlier in the episode uh about uh testnet 5. So these are the specific technical changes uh required to make the Genesis block of uh testnet 5 easier to mine using pool infrastructure, right? So as we said before, uh the difficulty of testnet 5 is considerably higher, I believe a million times higher than testnet 4, um, which required uh some changes to the Genesis block to m make it mineable using test. pool infrastructure. Uh which is why what what are these specific changes? For example, the the commitment to a recent uh mainet uh blog hash was initially gonna be included in a public key field in the Coinbase output, but will is now moved to a readable Uh text part in the Coinbase conebase input script. So that's like one of the changes that makes it more compatible with traditional pool infrastructure. Additionally, another benefit is that the output now uses an OP return, which explicitly
1:17:26marks it as unspendable. The output was already unspendable before this changed, but this just makes it very explicit. Uh Again, another change for compatibility with pool infrastructure. is to allow miners to vary the block version to expand the available mining search space.
1:17:45Unidentified speaker (UNKNOWN): The
1:17:46Unidentified speaker (speaker_3): next
1:17:46Unidentified speaker (UNKNOWN): one. Right. So this was all
1:17:47Unidentified speaker (speaker_2): in preparation for the testnet 5 launch. And uh AJ had contributed these suggestions, I think a week or two ago. And uh the idea, well actually it was possible to connect to AJ's mining pool to contribute to mining. the Genesis block in in advance. And that's why he made some of the Genesis block transaction um more like standard Coinbase transactions, so it would be easier to use existing software stacks.
1:18:19Unidentified speaker (speaker_3): Precisely. The next item, And BIPS I'm 2342. Uh this clarifies uh BIP34. Bib 34. Um and just to give a little background on on what this is, um Blake Bib34's block uh height, this clarifies BIP34's block height commitment um at very low heights because Bib 34 was deployed on mainnet at height uh 200, 270, 27 900, 31. So it wasn't con it it didn't consider very early um very early heights but since bib34 is also part of now the testnet 4 and i think as well testnet 5 of course uh it now has updated its specification to describe how uh heights 1 to 16 must use the single byte op codes op1 through op16 without a link prefix It also notes that the Coinbase input script must still contain at least two bytes, so the height opcode alone is insufficient.
1:19:24Unidentified speaker (speaker_2): Yeah, so BIP34 was introduced to ensure that Coinbase transactions would be unique. And the method of doing so was to require that the first thing that had to go into the um Coinbase. field, which is the input script of Coinbase transactions.
1:19:43Unidentified speaker (UNKNOWN): So
1:19:44Unidentified speaker (speaker_2): Coinbase transactions can only have a single input. And instead of an input script that s uh clari uh that um authorizes someone to spend a UTXO, it doesn't spend an input, right? So it has a different structure. And the Coinbase field specifically it has to have the block height at the start. And the block height has to be con encoded in minimal uh bytes. Like the there is it it has to be encoded as compactly as possible. However, for the first 16 blocks, that would mean that it But has to use the single byte opcodes up one through up 16. sixteen. And those wouldn't be enough to have to reach the minimum length of the Coinbase field. The Coinbase field has to have at least two bytes. So in order to fill up the Coinbase field, um this clarification requires that there is zero padding afterwards uh in order to fill it up to the first two bytes.
1:20:50Unidentified speaker (speaker_3): Thank you much. Merch. That's great. Now we move on to the lightning implementations. We start with core lining 9610. So this is a fix for a peer-trigger crash caused by an oversized HTLC amount. So for example, if a peer uh proposed propose an HTLC with a bogus amount of at least 92 ninety-two billion Bitcoin, it would set the amounts filled highest bit. This could cause the value to overflow or underflow, excuse me, and it would get interpreted as a negative during assigned balance check. So of course it would pass the balance check because the value would get represented as a negative value even though initially it was 92 ninety-two million Bitcoin. Um, So it would bypass the check for sufficient funds. However, later on, when trying to construct the commitment transaction, it would trigger an assertion and it would terminate uh channel D, which is the the channel subprocess, uh, and this would trigger uh uh a crash in core
1:21:55lining. Uh so the fix is simple, core lining Lang simply rejects amounts above uh the bold one ceiling of twenty one 21 million. bitcoins, of course, expressed in Melissa Toshis before even performing the arithmetic around the balance. The next item comes from the two two different PRs from the LDK repo 5507 and 5532. These both of these are bugs that happen during cooperative close uh that combine comb that could come. combine signatures for different transactions. In the first one, uh LDK um ha is trying to negotiate a cooperative close transaction with a peer, uh re initiates a transaction, keeps the cash of the of the first of the signature of the first transaction, but then the peer proposed a second transaction. And uh in in there, um it would just it would reuse the cash signature from the first transaction just because the proposed fee matched. Somehow LDK was simply looking at whether the proposed fee matched the signature that was cached, and if it did, it would reuse it and then it would.
1:23:15broadcast the transaction, and of course, the transaction could never get confirmed because it had an invalid signature. In the second case, it requires specifically the LDK node to use an asynchronous signer, and for that asynchronous signer to be unavailable when an initial signature is requested. This means that the fix is uh implements for LDK to clear clear the pending signing state. Uh excuse me, when the async signer would fit would be unavailable, the peer also has to disconnect. So both of these things need to happen. And if that was the case, then LDK could potentially grab the old peer signature. So very different from the first edge case, where it would grab its own signature. So it would grab the old peer signature and try to combine it with the new local proposal after reconnection. Right.
1:24:16And this would result in the same situation where LDK broadcasts an invalid closing transaction. Um and that leaves the fund funds stuck. and they require additional recovery. So then the next item, uh the next four items, excuse me, come five items come from the L and D repo. These are all the different bugs uh that I previously discussed in the in the release section. So I'm trying to go go briefly here because once again we could get stuck in in so many details that that are found here. The first one is uh a problem when LD is unable to find the pre image needed to claim an outstanding HTLC, part of an AMP payment, an atomic multipath payments. So previously, L and D, when trying to find these pre pre-images, images, it was treating them as if they had invoice level image. pre-images, so if they were regular invoices. Uh, not considering that the AMP HTLC image pre-images are stored somewhere else inside LND. Um, so that would make it hard for LND to
1:25:30recover on-chain these HTLCs. It was simply unable to find within its storage system the pre-images required to. recover them. So the fix is simply for ND to look in the correct place in order to find these uh these AMP pre-images and be able to recover these HTLCs on-chain. The next item, LND, 11,479. This is specifically when trying to broadcast a transaction that opens multiple channels. We know LND has had support for that for multiple years already. We covered it in newsletter 166. So when LND broadcasts that transaction on-chain, it could get a sort of error during broadcast that would make it think broadcast fail, failed, but actually broadcast went true. For example, a response times out. LD would previously assume this meant that the transaction failed to broadcast, but it could have broadcast either way. Previously, LND would simply abandon the pending channels
1:26:40and release their reserve wallet inputs. So an L and D node could simply construct other transactions with these inputs, even though the transaction was already in the networks in the net mempool of multiple network nodes uh and was waiting confirmation. So now LND even when return when getting this error type uh it will still keep these uh wallet inputs reserved uh and will monitor the transaction uh if the transaction cannot confirm uh the retained payment channels would require manual cleanup. The next item combines two different pull requests, 11340 and 11374. So these are cover the um extension of the bold 12 offers support in LD that we've been covering for several newsletters already. Now the there's offer creation and invoice request handling that has been implemented. There's even now an RPC command called CreateOffer or an LN Cle CLI command called CreateOffer that does that creates the offers. But there's also
1:27:57the first PR adds a handler that validates requests against stored offers. The second PR connects the handler to incoming onion messages. This feature is obviously only available in development builds, requires multiple additional configurations because it's extremely uh it's considered extremely experimental. And something else important to say is that uh we are we seem to be nearing the completion of the receiver side implementation of bowl 12s in LND. So the let's say the the data model was the first part of it. Uh the receiver side is now almost completed. Uh but for it to become go live, we still need to go through sender side implementation, multi-hop, um, paying offers, and uh RP. RPC parity. Finally, the next two items, once again from the L and D repo, LND 11,480. Uh one
1:29:00Unidentified speaker (UNKNOWN): quick note
1:29:01Unidentified speaker (speaker_0): if if people want to follow along with a bunch of these merch PRs that we've covered historically and the sort of roadmap for Bolt pole 12, um, it is 10,736 on the repo. So check that out if you want to follow along.
1:29:18Unidentified speaker (speaker_3): Thank you, Mike, for that extra note. So the next two items: 11,480. Uh, this is a fix when attempt when LD would crash when attempting to foreclose a channel restored from a static channel backup. Um, so if a user was attempting to force close. a channel with a static channel backup, something that you shouldn't really do because a static channel backup doesn't usually contain the latest state of a channel. But if somehow a user was on the force close path, it would simply trigger a crash in the L LND and D node, right? Because it's you're not supposed to be to do that with a static channel backup. So the fix is now for LND to simply reject the local force-close attempt because else it would just trigger a crash of the node. The next and final item, LND 11,481. So this is actually an interesting one because it fixes how LND would catch. cache the starting block height for scans that check whether a transaction has confirmed. So if uh LND wants to uh monitor uh uh a transaction that
1:30:38has a revolt commitment that was broadcasted by a peer, uh, an attacker could propose a fake channel funding output with the transaction ID of the revoke commitment transaction, but with a different output script. LND would previously uh um would previously scan or cache the scan starting height by transaction ID alone. So if the attacker proposes a transaction with the same transaction ID as the one that LND L should and D be monitoring for, the one with the revoke commitment, that could confuse LD into seeing, okay, this new transaction that has this transaction ID has hasn't been confirmed. So I'm gonna start monitoring for it at height, let's say 900,000. But what if the revoke revoked commitment one was actually confirmed?
1:31:39a few uh blocks before? Then LD would get confused and it would simply try to monitor for that revoked uh commitment starting at a height that is after the height that it was actually confirmed. And this could cause L and D to simply uh del the it would delay the detection of the revolt commitment and of course the penalty. transaction and reaction. And this could lead uh L and D to simply be unable to reply to a revolt commitment uh and potentially lose funds. So now the fix is for L and D to uh not only check for the transaction ID, but of course for the output script inside the transaction so that it doesn't get confused between two two different transactions. by an attacker. And that completes the newsletter. Thank
1:32:31Unidentified speaker (UNKNOWN): you.
1:32:32Unidentified speaker (speaker_0): Thanks, Gustavo. And thanks to Merch for co-hosting. We want to thank Antoine for joining us earlier and for you all for listening. Well, here next week. Cheers.