bitcoin script parser/evaluator/compiler/decompiler
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deps/tap.c
doc
examples
.gitignore
.travis.yml
LICENSE
Makefile
README.md
alloc.c
alloc.h
consts.h
lexer.l
main.c
misc.h
mph-opcodes
op.c
op.h
opcodes
oplookup.c
oplookup.h
parser.y
script.c
script.h
script_num.c
script_num.h
stack.c
stack.h
test.c
val.c
val.h
valstack.h

README.md

btcs

Build Status

bitcoin script parser/evaluator/compiler/decompiler

WARNING: This has not been rigorously tested, do not depend on script outputs when determining actual payees. Make sure to test on testnet first if you do.

Motivation

I wanted a better way to hack on Bitcoin scripts

TODOs

  • Tokenizer
  • Evaluator (partially complete)
  • Compiler
  • Syntax
  • Decompiler

Usage

Work in progress. Some OPs are working:

$ btcs 1 2 16 3dup 2swap

script      1 2 16 OP_3DUP OP_2SWAP
script_hex  5152606f72
stack       1 2 2 16 16 1
stack_hex   515252606051