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

Oct 2 - Oct 5, 2025

  • The discourse within the Bitcoin Development Mailing List delves into several key areas of development and optimization concerning the Bitcoin protocol, specifically focusing on transaction efficiency, script limits, and the utilization of OP_RETURN outputs.

A major theme is the debate over taproot control block sizes and the practicality of imposing constraints based on script execution probabilities rather than arbitrary numerical limits. The discussion suggests that a nuanced approach to taproot limitations could enhance security and efficiency by balancing between the realistic probabilities of script execution and the need for security.

Another focal point is the proposal of auto-renewing restrictions, which would allow for periodic reassessment and adjustment of rules concerning script and transaction sizes. This idea stems from the recognition of the evolving nature of Bitcoin's use cases and the desire for adaptable security measures that can be revised in light of new developments or insights. Additionally, there is a consideration of limiting new scriptPubKeys to 83 bytes or less to minimize storage requirements for Unspent Transaction Outputs (UTXOs), with larger data elements being hashed instead. This measure aims to reduce the overhead for network nodes, addressing scalability concerns.

The conversation also covers the potential for using witness data for publishing on the Bitcoin blockchain, highlighting a cost-benefit analysis that suggests witness data becomes economical for publishing more than approximately 143 bytes. Despite the controversy over adjusting the OP_RETURN limit, actual usage data indicates a general preference for smaller OP_RETURN outputs, suggesting limited adoption for larger sizes.

Innovative uses of large scriptPubKeys for script caching in complex smart contracts are discussed, with a hypothetical future version of lightning requiring a 9,000-byte script for every uncooperative close as an example. The suggestion here involves incorporating the script into the consensus through a soft fork or storing it in the UTXO set, with considerations for mitigating UTXO set bloat and regulatory scrutiny.

The dialogue extends to the strategic embedding of data within Bitcoin's witness data to alleviate network load and addresses emerging trends of transactions exceeding the current policy limit on transaction filters. Proposals include introducing hard consensus limits to prevent excessive use of data and enforcing multiple outputs for data embedding to deter spam activities. Andrew Poelstra, Director of Blockstream Research, underscores the impact of spam on blockchain scalability and efficiency, advocating for measures to increase costs associated with spamming activities.

Furthermore, the discussions touch upon the redundancy of using script for certain functionalities that could be achieved through Segwit v0 or Taproot scripts, arguing against narrowly targeted restrictions on script operations. There's an acknowledgment of the adaptability of users in circumventing specific restrictions, emphasizing the complexity of regulating script usage within the Bitcoin protocol.

A significant proposal under consideration involves setting a minimum size limit for ScriptPubkey at 520 bytes, aiming to address the lack of real-world applications for larger scriptPubKeys without significantly impacting the UTXO set. The proposal seeks to reconcile discrepancies between consensus and relay policy while preserving network security and performance. Brandon Black's soft fork proposal to declare the creation of outpoints with more than 520 bytes in the ScriptPubkey as consensus invalid post a certain block height is motivated by the minimal utilization of 'large' ScriptPubkeys over the past 15 years, intending to mitigate risks without significant drawbacks.

These discussions encapsulate a comprehensive examination of Bitcoin's technical constraints and opportunities for improvement, balancing innovation with security and operational efficiency. The ongoing dialogue within the Bitcoin Development Mailing List illustrates the collaborative efforts of the community to refine and evolve the Bitcoin protocol, inviting feedback and considerations on the interplay between technological advancements and foundational principles of the blockchain ecosystem.

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