Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jb55/btcs
bitcoin script parser/evaluator/compiler/decoder
https://github.com/jb55/btcs
bitcoin bitcoin-script
Last synced: 19 days ago
JSON representation
bitcoin script parser/evaluator/compiler/decoder
- Host: GitHub
- URL: https://github.com/jb55/btcs
- Owner: jb55
- License: bsd-2-clause
- Created: 2017-10-22T08:15:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T20:12:56.000Z (7 months ago)
- Last Synced: 2024-10-12T20:31:06.096Z (about 1 month ago)
- Topics: bitcoin, bitcoin-script
- Language: C
- Homepage:
- Size: 120 KB
- Stars: 14
- Watchers: 4
- Forks: 7
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btcs
[![Build Status](https://travis-ci.org/jb55/btcs.svg)](https://travis-ci.org/jb55/btcs)
bitcoin script parser/evaluator/compiler/decompiler
**WARNING**: This is not a consensus-critical implementation of
bitcoin script. Make sure to actually test your script on testnet or
with something like [btcdeb](https://github.com/kallewoof/btcdeb).## Motivation
I wanted a better way to hack on Bitcoin scripts
## Installing
deps: `python3`, `bison`, `flex`, a C compiler
$ make install
with nix:
$ nix-env -if .
## TODOs
- [X] Tokenizer
- [ ] Evaluator (partially complete)
- [X] Compiler
- [X] Decompiler
- [X] Docs## Usage
Work in progress. Some OPs are working:
```
$ btcs 1 2 16 3dup 2swapscript 1 2 16 OP_3DUP OP_2SWAP
script_hex 5152606f72
stack 1 2 2 16 16 1
stack_hex 010202101001
results success
```