Bitcoin Forum

Bitcoin => Electrum => Topic started by: ingrownpocket on January 26, 2013, 06:21:45 PM



Title: [Electrum] Export private keys (Windows)
Post by: ingrownpocket on January 26, 2013, 06:21:45 PM
How can I export the private keys from addresses created and used by Electrum?


Title: Re: [Electrum] Export private keys (Windows)
Post by: DannyHamilton on January 26, 2013, 11:00:26 PM
Looking at the Electrum.org website (http://electrum.org/) I see they have a "community" page.
http://electrum.org/community.html

Clicking that link (http://electrum.org/community.html), I see the following:

Quote
  • Documentation: https://en.bitcoin.it/wiki/Electrum

When I click that link (https://en.bitcoin.it/wiki/Electrum), I see the following:

Quote
You can export your private keys using the 'addresses' command:

Code:
$ ./electrum addresses -ak
Password:
1LGoehbyeX4QBEPK1a6dhyaoMQZfqg5LKX:5JBSttEGhjEcPidSovW66Rin2EZ6LEHZ2qx8Pu2RqqNaDTBVWaF   
1KcsBJa2cCxVkGJfSsg5bUeXN7Y5uLa8mP:5KiP4uiNT6KG8jnXbainCM8rDWRrgxt3PAyut4FFpDoCo1Rh6VM   
1PXsn7LVXTccGhJPTUL8r2EGB4fF9kvex3:5Kj8mvBJReyk8xEBMx5cTnciQCxto5JmudiTPkqwMcd61Kf1Jqc   
1KteSFTAphyByLTtUfFiVQ9s7fMVmx7c2h:5JeZ3FTbWcksLt3PKydd5U9p952UQRHwv3LoxzCA9LZ7V2bku5p   
1GE5ZChAobeTEPLHDCDDKTSg3XvLkcQFjS:5JwtGEygTwF2nouhRVzW3w5DWZd1sCgxLtnd1v51wjkbUrp5sqH   
12YNehfAoYTiwjTXULwaZqTCauu2D61fq6:5Jvcq19ePCXKcVun4n7US99CsrEByUK2kgxXBA3rBVBqYZjhfwD  [change]

There are two options in this example:

    option -a means: 'list all addresses'. if you don't use it, change addresses are not listed.
    option -k means: display the private keys



Title: Re: [Electrum] Export private keys (Windows)
Post by: flatfly on January 27, 2013, 06:52:36 PM
If your wallet is not encrypted, you can take a look inside the electrum.dat. There you find all the priv keys.

Unfortunately, this will only give you the imported keys (if any), not keys created by Electrum, because these are not stored in any file (they are dynamically derived from the seed.)

Only "electrum -oak addresses" will show them. However, as far as I know the current official Windows version doesn't support it. You may want to double-check on the Electrum thread or the #electrum IRC channel for the latest status on this.

Or if you still have access to one of my old builds (which are no longer supported but they will work fine), you can just hold down the SHIFT key while starting electrum and type the above command in the resulting console window.

PS: sacko, thanks for your kind words on the other thread ;)