Posted by Greg Sanders
Jul 9, 2025/18:19 UTC
In a collaborative effort, Antoine Poinsot, Steven Roose, and Greg have developed a technical proposal that emphasizes the design of operations to enhance certain capabilities within Bitcoin's infrastructure. This proposal addresses three key functionalities: the "Next transaction" feature similar to BIP119, the ability to "Verify signature of message on stack" akin to BIP348, and the capability to "Push taproot internal key onto stack" as outlined in BIP349. These functionalities are poised to simplify existing systems significantly, with the first two capabilities working in tandem and the third serving as a straightforward update that complements them.
The core of their contribution lies in the introduction of OP_TEMPLATEHASH
, designed as an alternative to BIP119's OP_CHECKTEMPLATEVERIFY
. OP_TEMPLATEHASH
stands out for its simplicity and modern approach, specifically tailored to be Taproot native. This design choice facilitates several improvements, including the utilization of OP_SUCCESS
upgrade hooks instead of traditional OP_NOP
s. This allows for the template hash to be pushed onto the stack more efficiently, which is particularly beneficial for rebindable signatures. Additionally, OP_TEMPLATEHASH
simplifies the implementation process by leveraging pre-computed Taproot sighash fields and avoiding unnecessary commitments to the spending transaction's scriptSigs. The proposed operation also strategically omits modifications to the less understood legacy Script and does not include an analogue for "bare CTV", citing a lack of demonstrated utility for the latter.
These developments have been thoroughly documented in the BIP text available here and the accompanying pull request here, which provides full motivation and rationale for this bundled proposal. Furthermore, the OP_TEMPLATEHASH
BIP can be found here, along with a complete implementation here. This initiative draws inspiration from "LNHANCE", detailed here, underscoring a commitment to advancing opcode and implementation discussions in parallel with broader conversations regarding the necessity and viability of these capabilities as potential milestones in Bitcoin's evolution.
TLDR
We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project?
Give Feedback