Skip to content

vibhaa/bitcoinIDE

 
 

Repository files navigation

Bitcoin Script IDE

A Bitcoin Script IDE to facilitate the learning, testing, and teaching of Bitcoin Script.

Features

  • Syntax highlighting
  • Auto-complete
  • Translation to and from assembly
  • Stack visualizer
  • Step-by-step debugger

Try it out!

  1. Open up IDE in http://www.cs.princeton.edu/~tongbinw/bitcoinIDE/build/editor.html
  2. 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
  1. View the equivalent assembly code by clicking the Assembly tab
  2. To execute the script, return to the Script tab and hit the Run button on the bottom to run the code
  3. Note the stack operations in the Stack pane on the right.
  4. To process the script one command at a time, hit the Step button on the bottom
  5. Note the stack operations
  6. Note the text box on the bottom that shows the next command
  7. To process the remainder of the commands, hit the Continue button on the bottom
  8. If the script was a valid script, then the text box on the bottom will be green and the stack elements will be orange.
  9. If the script was invalid, then the text box and the stack elements will be red

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • CSS 0.5%
  • Python 0.0%
  • LiveScript 0.0%
  • Makefile 0.0%
  • Shell 0.0%