bitcoin-elixir v0.0.2 Bitcoin.Script.Interpreter

Bitcoin Script interpreter.

Opcodes numbers are coming from: https://github.com/bitcoin/bitcoin/blob/master/src/script/script.h

Implemented from the scratch based on the wiki (https://en.bitcoin.it/wiki/Script) and script test cases from bitcoinj/bitcore.

There is still a long road ahead to 100% of valid/invalid scripts test suite (it’s really good). List of issues to remember can be find in the source file with an upcase ‘todo’ tag.

Summary

Functions

bin(x)
bool(arg1)
exec(script, opts)
exec(stack, script, opts)
get_multi(list, opts)
nth_element(stack, n, opts)
run(script, opts)
run(stack, script, opts)
sub_script(opts, sigs)
validate(script)
verify_all_signatures(arg1, arg2, opts)
verify_signature(sig, pk, opts)