Skip to content

Command-line Bitcoin Script bytecode disassembler.

Notifications You must be signed in to change notification settings

etscrivner/btcscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

btcscript

Command-line Bitcoin Script diassembler.

Usage

Give a file with Script bytecode as a single line hex string test.hex:

4730440220210d105c07282560683fc11591a22ca1494664d427643dede7d4a58101047569022077c8cdb8f0964a35cdcecc3149169d9e9fb2313c9aca026e17f60b43f0f4ef82012103921d49f08ee95b41454543e7356bd8631cf80b00c3a2b9c156cacf97524827d6eric

We can print the disassembly by running:

btcscript test.hex

The output should be:

OP_PUSHBYTES_71 30440220210d105c07282560683fc11591a22ca1494664d427643dede7d4a58101047569022077c8cdb8f0964a35cdcecc3149169d9e9fb2313c9aca026e17f60b43f0f4ef8201 OP_PUSHBYTES_33 03921d49f08ee95b41454543e7356bd8631cf80b00c3a2b9c156cacf97524827d6

Compiling

make

Testing

make check

About

Command-line Bitcoin Script bytecode disassembler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages