Benchmarking Bitcoin Script Evaluation for the Varops Budget (Great Script Restoration)

Nov 7 - Dec 18, 2025

  • The introduction of a new Tapscript leaf version within Bitcoin's script execution framework aims to address concerns related to the disabling of various opcodes in previous versions due to denial-of-service attack vulnerabilities.

The approach involves generalizing the sigops budget into a varops budget, which is applied across all operations. This adjustment allows for a proportional allocation of compute units based on transaction weight, with the current setting at 5,200 units per weight unit. To assess the effectiveness and efficiency of this strategy, benchmarking focuses on analyzing block-sized scripts against a varops budget of 20.8 billion compute units. Such evaluations include testing different operational patterns to identify potential bottlenecks in script validation under the new system, using Schnorr signatures as a comparative benchmark.

Community involvement is emphasized as crucial for refining the varops budget. Developers are invited to participate by engaging with the GSR prototype implementation, where they can compile with benchmarks enabled to run specific tests. The outcomes from these benchmarks, particularly those detailing performances of varops limited scripts and Schnorr checksig times, are essential for tailoring the varops budget to individual machine capabilities, ensuring broad effectiveness.

The conversation also delves into the technical specifics of compiling code for benchmarking, suggesting CMAKE_BUILD_TYPE settings to maximize result accuracy. A new GitHub repository has been established for contributors to share benchmark data, aiming to enhance analysis comparability across systems. Acknowledging errors during benchmarks as anticipated, the discussion highlights the need for methodological refinement, especially around capping the varops budget at 100% to better evaluate varops ratios and their impact on performance across varying input sizes.

In examining the efficiency of cryptographic operations within Bitcoin, particularly concerning Schnorr signatures, an experiment highlighted the potential for increased verification times, raising concerns about the implications for network responsiveness and transaction cost. This issue is particularly pertinent given the computational demands associated with verifying large numbers of transactions, emphasizing the need for a balance between security and efficiency.

Further discourse explores blockchain validation processes, suggesting that real-world operations are unlikely to push the computational budget to its limits, indicating possible over-preparation for worst-case scenarios. This insight leads to discussions on optimizing blockchain network operations without compromising validation integrity, highlighting strategies like leveraging cached data for more effective validation.

The prospect of incorporating advanced logic opcodes, such as those enabling zero-knowledge proofs, showcases the evolving capacity for complex operations within blockchain technology. However, this development necessitates a careful approach to ensure network security and user safety, avoiding undue resource strain from potentially exploitative transactions.

Lastly, the dialogue touches upon the strategic considerations behind maintaining signature operation limits within Taproot/BIP340-342, reflecting a cautious but flexible approach to evolution within Bitcoin’s scripting infrastructure. This stance underscores a readiness to reassess and adapt to technological advancements while considering the broader implications for network functionality and security.

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