Introducing Script Wizard
Script Wizard is a new open source project for writing, debugging, and compiling custom scripts for Liquid. It’s both a sandbox for playing around with opcodes and a developer tool for designing covenants.
Writing and Debugging
Script Wizard makes it easy to write custom Liquid scripts. Simply write your script and have your witness elements at the very top. You can see stack execution line by line on the right side of the editor.
Compiling to Bytecode
In order to compile your script, you can Tap to “Compile script” button at the top-right corner of the editor. This will give you bytedata representation of your script which you can copy.
Paying to Script
You can use decodescript
method on your Elements console to decompile your script bytedata, and to get p2sh, segwit and p2sh-segwit addresses derived from your script. You should consider paying to a segwit or a p2sh-segwit address, if you’re funding a covenant or a Lightning channel.
Try it Out
Script Wizard is built on script-wiz-lib, and you can try out the compiler online at ide.scriptwiz.app. Please keep in mind this is a beta version, and we recommend testing scripts on regtest prior to mainnet deployment.
Web app: https://ide.scriptwiz.app/
GitHub: https://github.com/bit-matrix/script-wiz-lib
NPM: https://www.npmjs.com/package/@script-wiz/lib
Twitter: https://twitter.com/script_wizard
Join community: https://t.me/+bEiJnTeu-mA1ODRk