Correct -- it doesn't alter the validity space of transactions, just the validity space of merkle roots, which are the cause of the problem to begin with.
A second layer client would implement this rule as well, and be "protected" from prefix attacks by the consensus enforced rule. ------------------------- I largely agree with your point on the use of AI... I can at least reassure you that I used AI here as a *drafting tool* and not to come up with the idea or analysis. I noted the use of AI precisely to properly discount the value of the BIP at this point, which is surely superior to trying to pass it off as acceptable for full evaluation. As a drafting tool it got several facets of the proposal incorrect, and so I edited it substantively before including... There isn't really a trust-sama in this case... Regards, Jeremy On Tuesday, June 2, 2026 at 9:16:16 PM UTC-4 Antoine Riard wrote: > Hi Jeremy, > > If I'm getting correctly your idea, this is not a removal of the "seam" in > the > validity space of transaction, more a reduction of the "seam" to a specific > structure. That means a second-layer client would still have to implement > this > check to rule out tx input that might infringe it. Not sure, if it's a real > design win compared to the current proposal... > > By the way, as a side note if we can be spared with chat-gpt generate > bips, thanks > you. I did (naively) believe bitcoin development philosophy was about on > delivering > on a trust-minmized security model. Not in fact some novel trust-sama > philosopy. > > Best, > Antoine > OTS hash: e0faa568d4eef3b250b193f01c7134129abe225f7b10f345825610738c5ea1a2 > > Le Tuesday, June 2, 2026 à 7:20:05 PM UTC+1, jeremy a écrit : > >> >> They aren't really doing "additional checks" in the way you're framing >> it. There's just a new rule applied to existing proofs, no additional data >> compared to before. That new rule is *something* like given proof : >> ([(Hash, LEFT | RIGHT) | ODDNODE ], Transaction) >> >> then as you hash you just forbid that any LEFT | RIGHT or LEFT | LEFT is >> allowed to be parseable as a transaction. >> >> This forces that if a 64-byte transaction is present, it must be a leaf. >> >> This prevents the other 64 byte transaction issue because you can't embed >> a txid sub-tree inside the 64-byte transaction to lie to an SPV user. >> >> My estimate is that this case happens naturally like 1 in 2 million >> blocks. >> On Tuesday, June 2, 2026 at 8:40:05 AM UTC-4 Greg Sanders wrote: >> >>> Hi Jeremy, >>> >>> Why does the SPV verifier need to do additional checks? SPV implies it's >>> simply trusting the heaviest chain. Clearly they could validate it, but I'm >>> not seeing necessity in the security model. >>> >>> Greg >>> >>> On Monday, June 1, 2026 at 4:22:28 PM UTC-4 jeremy wrote: >>> >>>> Antoine, >>>> >>>> Rejecting nodes with any valid tx in path, without this rule, is >>>> problematic, because it _can_ be possible for an attacking miner to >>>> engineer that scenario by grinding one TXID leaf to mask a subtree, which >>>> could have major consequences. Third party malleability vulnerability to >>>> deposit / withdrawal masking is a serious bug. Worth thinking that through >>>> very carefully before recommending these mitigations. Do you have an >>>> end-to-end working example of such a mitigation that doesn't have these >>>> issues? >>>> >>>> > This is incorrect for any bridge, wallet, or deposit system that >>>> does not receive funds to a script that either burns the funds or that >>>> anyone can spend. >>>> >>>> The problem is that from the perspective of a wide variety of layer 2 >>>> protocols, you actually do want to be able to simply close out a UTXO and >>>> prove a UTXO is spent. >>>> >>>> In the current L2 protocol design space, value doesn't always flow >>>> directly along the output, the UTXO may be being used as a connector >>>> input, and the spend of that output may be making a different output >>>> available after a timeout and excluding an alternative spend. >>>> >>>> Best, >>>> >>>> Jeremy >>>> >>> -- You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/619e6297-ffe9-4288-801a-53e115dc720en%40googlegroups.com.
