bitcoin-interpreter
v1.0.0
Published
JavaScript implementation of a Bitcoin Script interpreter
Downloads
3
Readme
bitcoin-script-interpreter
JavaScript implementation of a Bitcoin Script interpreter by GAFO TECH
Installation
npm i bitcoin-script-interpreter
Usage
const Interpreter = require('bitcoin-interpreter');
const interpreter = new Interpreter();
const ops = interpreter.ops();
var inputScript = [ops.OP_3];
var outputScript = [ops.OP_1, ops.OP_ADD, ops.OP_4, ops.OP_EQUAL];
console.log(interpreter.verify(inputScript, outputScript));
// true