"Recursive covenant" with CTV and CSFS

Posted by Anthony Towns

Mar 12, 2025/03:48 UTC

In an insightful discussion on the technical intricacies of Bitcoin's proposed enhancements, Nadav Ivgi highlights the original design of the COSHV (CheckOutputSHVerify) implementation as outlined in Jeremy Rubin's proposal. The unique aspect of COSHV, according to the documentation, lies in its hash functionality. Specifically, the hash appears a push after the CTV (CheckTemplateVerify) opcode. This detail is crucial for understanding how COSHV integrates within the broader context of Bitcoin scripting.

The conversation further explores the potential of combining either APO (Ancestor Proposal Outputs) or CTV with CSFS (Commitment to Future Script Success) to create an advanced mechanism for chain commitments. This combination allows for the creation of an arbitrarily long chain of commitments. Particularly intriguing is the introduction of APO|SINGLE, which enables the addition of inputs and outputs for managing fees and changes without breaking the commitment chain. By discarding the private key associated with CSFS, one can achieve a single reusable commitment, enhancing both efficiency and security within the Bitcoin network.

However, the practical application of these enhancements faces challenges, especially in environments like mutinynet, where certain features such as 0-value anchor outputs might not receive support. The workaround involving CTV to commit to two inputs—with one input's value entirely allocated to fees—presents a less than ideal solution due to its complexity and inefficiency.

Through this exchange, the ongoing discussions within the Bitcoin Development community are brought to light, showcasing the continuous efforts to refine and improve upon the existing infrastructure. Such engagements underscore the dynamic nature of blockchain technology development, where proposals such as COSHV, APO, and CSFS represent steps toward more versatile and secure blockchain protocols.

Link to Raw Post
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