64 bit arithmetic soft fork

Posted by Chris_Stewart_5

Jan 11, 2024/17:19 UTC

The introduction of an OP_ENABLE64BIT operation has raised concerns regarding the potential complexity it could add to the virtual machine interpreter state, with significant implications for consensus stability. The addition would mark a substantial shift in the virtual machine's formal structure by enabling 64-bit operations within script execution. This change is seen as particularly problematic due to the confusing nature of mixing standard and 64-bit specific operations within the same script. An example provided illustrates the point where consecutive operations like OP_ADD and OP_SUB would have their interpretation altered mid-script through the use of OP_ENABLE64BIT, resulting in a mix of numerical systems that could be difficult to follow.

A contrasting approach suggests the adoption of a leaf_version path that offers a more holistic solution. By using such a method, it would become possible to interpret all arithmetic operations as 64-bit at a global level throughout the entire script execution. This would ensure consistency in operation interpretation and reduce the risk of introducing consensus issues. The global reasoning within the interpreter, when following this path, simplifies the understanding of arithmetic operation handling by maintaining a uniform operational context.

Link to Raw Post

Thread Summary (52 replies)

Jan 10 - Jun 20, 2024

Bitcoin Logo

TLDR

Join Our Newsletter

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

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

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

Give Feedback