[0/4] A Bitcoin Scripting Proposal BIP Quartet

Posted by Rusty Russell

Sep 27, 2025/08:12 UTC

Rusty, with assistance from Julian Moik, has been dedicated to enhancing Bitcoin's scripting language, aiming to restore it to its original capabilities. Their efforts focus on utilizing Script to not only retain its essence but also expand its functionalities, making their work a valuable reference point even for those who may favor alternative approaches. The initiative is currently in a draft phase, available for review at GitHub.

The project introduces several key innovations and proposals to revitalize Bitcoin scripting. Firstly, it suggests the implementation of a variable operations (varops) budget. This concept evolves from the traditional sigops budget, aiming to limit script operations based on transaction weight. By benchmarking across various machines, this budgeting technique seeks to balance rapid evaluation with the flexibility of scripting capabilities. Once this varops budget is established, it would enable the reactivation of previously disabled opcodes, increase stack object size and capacity, and reintroduce arbitrary-length arithmetic operations, albeit with numbers being exclusively unsigned.

Another significant enhancement is the introduction of an opcode, termed OP_TX, designed to facilitate data introspection within scripts. By allowing scripts to access parts of the current transaction, this opcode simplifies the handling of large data sets and opens up new possibilities for script functionality.

Moreover, the proposal outlines the creation of new opcodes tailored for Tapscript v2. These include OP_CHECKSIGFROMSTACK, OP_SEGMENT, OP_BYTEREV, OP_ECPOINTADD, OP_INTERNALKEY, and OP_MULTI. Each opcode is designed to optimize Script's utility, ranging from familiar concepts to innovative solutions aimed at broadening the scope of what Bitcoin scripts can achieve.

For practical evaluation, a prototype implementation has been utilized, details of which can be found at this GitHub repository. Rusty and Julian invite feedback on these proposals, signaling openness to debate and discussion on the future direction of Bitcoin scripting capabilities.

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