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
  • 162
  • 8

1 Answers1

1

I guess I found an answer:

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