Title: Python MPK cmd line tool Post by: BkkCoins on March 04, 2013, 06:26:34 AM Just because I was curious I decided to make a simple cmd line python tool that can output the MPK given a seed. It just uses the same code as Electrum client but is much simpler. I was thinking this may be handy as a simple way to generate a wallet offline. The idea is that you only need this very simple script, which can either be copy/pasted or typed in by hand, and a LiveCD/USB to create a wallet.
I was thinking that you can roll dice to gen the seed. Write it down as you go. Then save the MPK for later restore on your desktop Electrum. This way the seed never exists on your desktop and cannot be hacked. Restoring a wallet from MPK allows watching address balances and generating new addresses but not spending from the addresses. Type command "electrum restore" and pasting the MPK when it asks for seed will create a watch-only wallet. Code: #!/usr/bin/env python Although I have tested this to work I suggest you verify yourself. No warranty implied. Title: Re: Python MPK cmd line tool Post by: ThomasV on March 04, 2013, 08:05:43 AM you can also install the electrum library, and use it without installing a wallet
Title: Re: Python MPK cmd line tool Post by: BkkCoins on March 04, 2013, 09:31:51 AM you can also install the electrum library, and use it without installing a wallet Oh. Didn't know that. Would that reduce this to just an import and a few lines? Title: Re: Python MPK cmd line tool Post by: ThomasV on March 04, 2013, 09:42:32 AM you can also install the electrum library, and use it without installing a wallet Oh. Didn't know that. Would that reduce this to just an import and a few lines? Sure. The syntax might still change in the future, but currently all you need is: Code: from electrum.bitcoin import ElectrumSequence |