pretty-prints various bitcoin data structures
- Go 100%
| block.go | ||
| expected.txt | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.MD | ||
| showoff.png | ||
xxbitcoin
pretty-prints various bitcoin data structures
kinda like fd but less technical and bitcoin-focused
Usage
xxbitcoin --type <data structure type> <hex-encoded structure>
it reads from stdin if not passed a string too
echo <hex-encoded structure> | xxbitcoin --type <data structure type>
Features
- decodes scripts, coinbase scripts, and block headers
- pretty colors :3
Bugs
- doesnt properly chunk all strings (errors tend to be tricky)
- alignment isnt always perfect
- like zero error handling (for now)
TODO
- refactor to a more modular system
- refactor chunking
- always split around hex bytes in header
- accept raw binary as input
- decode transactions
- decode txout destinations?
- decode blocks
- decode stratum v1 messages
- decode stratum v2 messages
- error handling
- allow for different window sizes?
