[BIP Proposal] Limit ScriptPubkey Size >= 520 Bytes Consensus.

Posted by jeremy

Oct 4, 2025/23:12 UTC

The discussion revolves around the optimization of taproot control block sizes within the Bitcoin protocol, specifically addressing concerns over the current limit which allows for an excessively large number of scripts, theoretically up to 340e36. The critique centers on a common misunderstanding of the purpose behind taptree's depth, which isn't aimed at directly limiting the number of script elements but rather optimizing on-chain costs by considering the likelihood of script execution. It's suggested that a more practical approach to constraining taproot should involve setting limits based on the minimum probability of a script's execution rather than on a sheer number of allowable scripts.

For instance, it's argued that if the execution probability of a script falls to one-in-4 billion, a depth of 32 would be appropriate. The choice of a 128-depth limitation is further explained by comparing it to the negligible likelihood of certain events, such as brute-forcing a key, indicating that if the chance of executing a branch is as low as (2^128 -1)/2^128, it should be considered sufficiently unlikely to occur. This perspective suggests that constraints on taproot should be nuanced and informed by a balance between security, efficiency, and the realistic probabilities of script execution, rather than by arbitrary numerical limits.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback