LearnBitcoin

Bitcoin Dev Archive 2015

Looking for a good bitcoin script decompiler in Python

3 messages, 29 Apr 2015. Started by Braun Brelin.

Braun Brelin, Richard Moore, Jeff Garzik

Permalink Original thread on gnusha.org

Braun Brelin permalink original

Hi all,

I'm trying to find a good python script that will take the hash of the locking and unlocking tx scripts and output the actual op codes.

Any ideas where to look?

Thanks,

Richard Moore in reply to Braun Brelin permalink original

I have a library, pycoind (https://github.com/ricmoo/pycoind <https://github.com/ricmoo/pycoind>) you might find useful.

Quoted text (2 lines)
>>> import pycoind

>>> str(pycoind.script.Tokenizer('76a9143f320f852a51643d3ffbaa1f49bfe521dd97764a88ac'.decode('hex')))

'OP_DUP OP_HASH160 3f320f852a51643d3ffbaa1f49bfe521dd97764a OP_EQUALVERIFY OP_CHECKSIG'

Quoted text (21 lines)
> On Apr 29, 2015, at 1:12 PM, Braun Brelin <bbrelin@gmail•com> wrote:
>
> Hi all,
>
> I'm trying to find a good python script that will take the hash of the locking and
> unlocking tx scripts and output the actual op codes.
>
> Any ideas where to look?
>
> Thanks,
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists•sourceforge•net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development

.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸><(((º>

Richard Moore ~ Founder Genetic Mistakes Software inc. phone: (778) 882-6125 email: ricmoo@geneticmistakes•com <mailto:ricmoo@geneticmistakes.com> www: http://GeneticMistakes.com <http://geneticmistakes.com/>

Jeff Garzik in reply to Richard Moore permalink original

python-bitcoinlib supports script parsing and execution.

On Wed, Apr 29, 2015 at 6:16 PM, Richard Moore <me@ricmoo•com> wrote:

Quoted text (62 lines)
> I have a library, pycoind (https://github.com/ricmoo/pycoind) you might
> find useful.
>
>
> >>> import pycoind
>
> >>>
> str(pycoind.script.Tokenizer('76a9143f320f852a51643d3ffbaa1f49bfe521dd97764a88ac'.decode('hex')))
> 'OP_DUP OP_HASH160 3f320f852a51643d3ffbaa1f49bfe521dd97764a OP_EQUALVERIFY
> OP_CHECKSIG'
>
>
>
>
> On Apr 29, 2015, at 1:12 PM, Braun Brelin <bbrelin@gmail•com> wrote:
>
> Hi all,
>
> I'm trying to find a good python script that will take the hash of the
> locking and
> unlocking tx scripts and output the actual op codes.
>
> Any ideas where to look?
>
> Thanks,
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
>
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists•sourceforge•net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>
>
> .·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸><(((º>
>
> Richard Moore ~ Founder
> Genetic Mistakes Software inc.
> phone: (778) 882-6125
> email: ricmoo@geneticmistakes•com
> www: http://GeneticMistakes.com
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists•sourceforge•net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>
>