Skip to main content

Change Adresses and Paper Wallets

Paper wallets are a handy little store of a private key offline. Unfortunately, many people seem to misunderstand one of the fundamentals of how they work, and subsequently lose vast amounts of money. Storage in a paper wallet is completely safe, retrieving the funds from one is less so.
In typical use, a paper wallet would be retrieved into a client using the importprivkey command, and from there it should be assumed at the paper wallet is completely useless. From the moment the first transaction is made, the paper wallet is empty, this is due to the way to the way that the client handles change.
Lets explore this with an example.

Let's imagine that I send the full contents of my paper wallet (5BTC) to a new address, once I have imported it to bitcoin-qt.
+-------+
| paper |
+-------+
    |
    | 
    |
    V
+--------------------+   
| destination (5BTC) |    
+--------------------+   
This is the expected behaviour, my paper wallet now contains 0 bitcoin, and the receiving address contains 5BTC.
This time, I am going to send 1BTC to an address from my 5BTC wallet, and keep 4BTC in my paper wallet for later.
+-------+
| paper |
+-------+
    |
    +------------------------+
    |                        |
    V                        V
+--------------------+    +---------------+
| destination (1BTC) |    | change (4BTC) |
+--------------------+    +---------------+
Unfortunately this isn't how bitcoin works. There is now nothing in my paper wallet, and 4BTC has been moved to a new "change" address. If you wish to keep this amount in an offline address than, you must create a new paper wallet for this change.
The mistake people have made in the past is to import a paper wallet with 100BTC in it, spend one or two, and then assume that the paper wallet still holds 98BTC.

This situation is only an issue if you reimport a wallet and expect the funds to remain on it. This issue doesn't apply if you are using your wallet normally.

Hope this saves people some serious hassle, and money.

Comments

Popular posts from this blog

Bitcoin Mining Hardware

This post is, for now, mostly a placeholder for a better one. Still, here is some information about my mining system: AMD Radeon HD 5830, RAM @ 1200MHz (300), PCI-e 8x - 250 MH/s AMD Radeon HD 5870, RAM @ 1200MHz (300), PCI-e 8x - 380 MH/s AMD Athlon 64 X2 5200+ Jetway M25GT6-SG motherboard 1GiB DDR2-800 Corsair VX550 PSU  4GB Sony USB Flash drive (kind of resilient, not typical) Gentoo Linux with custom RAM drive for temporary files Do keep in mind that Bitcoin does not require huge amounts of RAM, in fact I had to remove 5GiB from the machine since AMD's proprietary drivers were not launching the X.org server with that amount of RAM, while Nvidia cards worked ok. Stock cooler is used in the 5870 and a Thermalright HR-03GT on the 5830, since I have a custom nForce 550 cooling (it did get very hot otherwise). Power Supply Considerations If you're looking to build a system with a big number of GPUs, you can simply grab a motherboard with a good amount of ...

Almost 2 Million Bitcoins Could Be Lost Forever

The current supply of Bitcoin is around 12 million coins, derived from the number of coins "mined" from block rewards. What is unaccounted for is the number of coins that have been lost due to various reasons, from lost passwords to wallets, to badly managed cold storage, to not backing up the wallet file. The number is hard to predict because for early adopters something like 10,000 bitcoins wasn't worth much (like the fellow who threw away a laptop HDD with a 7,500 BTC wallet in it). Reddit user rutkdn  has stumbled on a huge quantity of coins that may be lost: he ran a program to the blockchain and found that almost 40,000 addresses have exactly 50 BTC in them which have never been moved. 50 BTC was the block reward during the first, and largest, phase of Bitcoin mining. I think the number of lost or forgotten coins is much higher than current estimates. As of yesterday when I ran the block parser there were 38,399 addresses with a balance of 50 BTCs. Almost all o...

DELL Now Accepts Bitcoin

Michael Dell, CEO of DELL Inc., has posted on his Twitter that it is now accepting Bitcoin as payment for purchases on it's online store. Given the company's dimension, DELL is effectively the biggest e-commerce business to accept Bitcoin. Currently, among other big companies to embrace Bitcoin payments are Newegg, Overstock, Wordpress and Shopify . Newegg has been running a promotion where Bitcoin users get up to a 10% discount on purchases  with the promo code BITCOIN . For more information where Bitcoin is accepted as payment, the  spendbitcoins.com   directory is an excellent place to start.