|
March 06, 2013, 04:48:31 PM |
|
Be warned, if you're not careful, a brainwallet setup of Electrum can eat your BTC.
The idea is to store private keys on a thumb drive, encrypted with TrueCrypt. Ya with me so far?
Run standalone Electrum to do a transaction. Import the private key. Pretty straightforward so far.
Sent BTC to ***. There were 9.5 BTC linked to that private key. Sent 0.5 BTC.
Electrum made a change wallet that I THOUGHT was linked to the original private key. It turns out the change wallet is probably linked to the "seed" of the Electrum wallet that it makes when you start a new electrum.dat file.
I then deleted electrum.dat on that computer because, you know, hackers. Of course that electrum.dat file had the seed for that new change address.
So you can see what happens next (perhaps there are a few people who understand where this is going): I got home and checked the Armory wallet, which now showed a zero balance. WTF! Where did the BTC go?
Well, check blockchain.info and there they are, in a new address, private key unknown.
Please, Mr. Electrum, whoever you are (Dr. Electrum?) consider the following: 1. Disable change wallets by default 2. Allow users to start the standalone proggie by EITHER creating a new wallet in Electrum OR importing an existing private key. 3. Linking change wallets to the imported private key instead of the Electrum wallet if there is an imported key, or at least give us the option. Armory is more careful about that, and I think intuitively I assumed (incorrectly it turns out) that Electrum would be the same.
The program works pretty well, but if you intend to use it on an offline thumb drive, you had better be careful about where your change goes.
I learned an expensive lesson: transactions, even small ones, are not trivial and involves potentially all the dough linked to that private key.
So now that my change wallet is "dead" I wonder what happens when all 21 million BTC succumb to a similar kind of entropy? Sooner or later, missing private keys will affect lots of BTC, perhaps all of them. At least with cash, it's a zero-sum game, someone loses $100 on the street, someone else picks it up and uses it. In this case, the loss is more analogous to a pile of bills catching on fire.
|