JBaczuk / bitcoin-script-js

Bitcoin script interpreter written in javascript for browsers and node.js
MIT License
1 stars 1 forks source link

Add basic interpreter. Implements #2, #3 and #15 #22

Closed JBaczuk closed 5 years ago

JBaczuk commented 5 years ago

I decided to just push what I've got, so we can add each operation as it's own pull request. Currently the interpreter can do the following:

  1. Currently only supports opcodes from 0-75
  2. Evaluate a script and return true or false if the evaluation succeeded or failed
  3. Execute one step in the script
  4. Has basic test fixtures set up

For each new op_code we implement, we can create the corresponding test fixtures, implement that op_code in the switch/case in interpreter.js and submit a pull request. Let me know if your thoughts on that approach.

wardlem commented 5 years ago

I believe that #23 should replace this PR. What do you think?

JBaczuk commented 5 years ago

Yeah you're right I'll close this.