How to convert Script hash into opcodes, in Ruby?

0

I have a script and it looks like this: 76a914af7a4a30243f2301e6a14a4979ae099d52f560d488ac. How can I create an instance of class Bitcoin::Script from ruby-bitcoin? It has to be parsed, I believe, but how? I posted a GitHub ticket too.

yegor256

Posted 2019-04-10T13:21:09.157

Reputation: 117

Answers

0

I guess I found an answer:

script = Bitcoin::Script.new([hash].pack('H*'))

yegor256

Posted 2019-04-10T13:21:09.157

Reputation: 117