Covenants.diy: a node editor for covenant scripts

Posted by askii21m

Aug 23, 2026/15:37 UTC

An innovative open-source node editor has been developed to facilitate experimentation with covenant scripts. This tool allows users to connect nodes, which then automatically generate the taproot output, assemble the tapscript, compute the sighash, and execute the script within an interpreter. This setup is particularly useful as it enables detailed observation of how each opcode affects the stack during execution. Importantly, all cryptographic hashes and signatures are calculated directly in the user's browser, enhancing both security and performance.

The node editor includes a unique feature where each graph created by a user is assigned a permalink. This feature ensures that any setup can be revisited or shared easily without the need to recreate the graph from scratch. The examples provided cover various applications and implementations of Bitcoin Improvement Proposals (BIPs). For instance, the Vault example demonstrates a delay mechanism for detecting theft, alongside a secure method for halting unauthorized transactions. Other examples like Congestion control and Delegation illustrate complex payout structures and key delegation techniques without transferring ownership, respectively.

Further examples include Oracle payout, which combines features from multiple BIPs to enable external condition-based payouts, and Rebindable state which showcases updates to contractual states with minimal data use. The tool also supports historical approaches such as depicted in Rebindable state, the older way, comparing newer methodologies with previous ones using ANYPREVOUT key types.

Moreover, advanced setups like Merkle proof, CAT-only covenant, and Recursive covenant demonstrate scripts for securely folding transaction branches, creating standalone signatures, and designing self-referential spending conditions, respectively. Each script clearly indicates its compliance status relative to active proposals selected via a header menu in the editor, ensuring users are aware of the operational context of their scripts. This transparency is crucial for developers looking to tailor features based on specific BIP activations.

This node editor not only simplifies the process of building and testing complex Bitcoin scripts but also enhances educational efforts by providing hands-on examples that are easily accessible through permalinks. These examples serve as practical guides for anyone interested in developing sophisticated Bitcoin operations, whether for educational purposes or real-world application.

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