Posted by Josh Doman
Jul 9, 2025/21:30 UTC
The discussion begins with a critique of the current proposals for enhancing Bitcoin's expressivity through OP_TX / OP_TXHASH, specifically regarding their approach to committing to sibling prevouts. The author argues that these methods lack justification due to their complexity and suggests a more streamlined alternative. The proposed solution involves utilizing MuHash, a mechanism already present within the Bitcoin codebase, to create a more efficient and targeted method for committing to sibling prevouts.
MuHash is suggested as a tool to generalize the CTV / TEMPLATEHASH by precomputing an accumulator containing the SHA256(index || prevout) for each input in a transaction. This process allows for the commitment to sibling prevouts for any given input in constant time, simply by copying the precomputed accumulator and excluding the hash for the specific input under consideration. This technique not only streamlines the process but also ensures predictability in the commitment outcome, regardless of the number of inputs spent.
The integration of this method into the existing proposed commitment scheme is presented as a low-cost, efficient alternative that enhances the predictability of the next txid. The feasibility of this implementation is underscored by the fact that MuHash is already included in the Bitcoin codebase, suggesting that adopting this method would not require significant additional resources or modifications.
In conclusion, the author posits that this approach, leveraging MuHash for committing to sibling prevouts, would more effectively meet the objective of introducing a primitive committed to the next transaction, aligning with the overarching goals of Bitcoin development.
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