Bitcoin Forum
August 24, 2026, 05:25:00 PM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: covenants.diy: a node editor for covenant scripts  (Read 19 times)
askii (OP)
Jr. Member
*
Offline

Activity: 52
Merit: 162

better with code than with words


View Profile WWW
Today at 03:05:36 AM
Last edit: Today at 03:51:39 AM by askii
 #1

I'm working on an open-source node editor for experimenting with covenant scripts.

covenants.diy

You can wire nodes together and it builds the taproot output, assembles the tapscript, computes the sighash, and runs the script in an interpreter that reports what each opcode did to the stack. Every hash and every signature is computed in the browser.

Every graph has a permalink, so the nine worked examples below open already built and running. Click one and step through it:

VaultBIP 119. Delay to notice a theft, and a cold path to stop it
Congestion controlBIP 119. One transaction commits to a tree of payouts
DelegationBIP 348. Hand someone one spend without handing them your key
Oracle payoutBIP 348 + 119
Rebindable stateBIP 448. The update leaf is three bytes
Rebindable state, the older wayBIP 118. The same channel with an ANYPREVOUT key type
Merkle proofBIP 347. A script folds a leaf back into a root it commits to
CAT-only covenantBIP 347. No CSFS: the script builds its own signature
Recursive covenantBIP 347 + 348. A coin that can only be spent back into itself

If there is a construction you would like wired up as an example, say so and I will add it Smiley.

A selector in the header sets which proposals you assume are active, and every script is marked enforced, degraded, or open against that choice.
Source is MIT, except the interpreter fork, which keeps the CC0 dedication it came with.

*Copying a permalink uploads the graph, which is what makes the link short; nothing else leaves the browser.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!