jb55 / btcs

bitcoin script parser/evaluator/compiler/decoder
BSD 2-Clause "Simplified" License
14 stars 7 forks source link

Decoder #39

Closed jb55 closed 5 years ago

jb55 commented 5 years ago

It would be nice to have a mode that decoded hex-encoded script, like bitcoin-cli decodescript but much faster. Then we could do something like:

./bitcoin-iterate -q --output=%os --start 0 --end 80000 | btcs --decode
jb55 commented 5 years ago

Reminder to self: reset memory arena for each input line. This should be obvious but I don't trust my brain to remember such things.

jb55 commented 5 years ago

done in 142a953fa026aa904e52e846967d5dc6af3271b9