A Bitcoin Script IDE to facilitate the learning, testing, and teaching of Bitcoin Script.
- Syntax highlighting
- Auto-complete
- Translation to and from assembly
- Stack visualizer
- Step-by-step debugger
- Open up IDE in http://www.cs.princeton.edu/~tongbinw/bitcoinIDE/build/editor.html
- In the Script pane, type in some script code:
- ex. 1 2 OP_ADD
- ex. 123 OP_HASH256
- ex. 1 OP_IF 2 OP_ELSE 3 OP_ENDIF
- View the equivalent assembly code by clicking the Assembly tab
- To execute the script, return to the Script tab and hit the Run button on the bottom to run the code
- Note the stack operations in the Stack pane on the right.
- To process the script one command at a time, hit the Step button on the bottom
- Note the stack operations
- Note the text box on the bottom that shows the next command
- To process the remainder of the commands, hit the Continue button on the bottom
- If the script was a valid script, then the text box on the bottom will be green and the stack elements will be orange.
- If the script was invalid, then the text box and the stack elements will be red