lian / bitcoin-ruby

bitcoin utils and protocol in ruby.
Other
922 stars 322 forks source link

How to convert hash160 script to Script object? #291

Open yegor256 opened 5 years ago

yegor256 commented 5 years ago

I have a script and it looks like this: 76a914af7a4a30243f2301e6a14a4979ae099d52f560d488ac How can I create an instance of class Script from it? It has to be parsed, I believe, but how?

Post to SO too: https://bitcoin.stackexchange.com/questions/85963/how-to-convert-script-hash-into-opcodes-in-ruby