Can a new wallet receive money that was sent to it before the wallet was created?

-3

Possible Duplicate:
What would happen if two public keys had the same Base58 hash?

A follow up from What happens if I mistype the address when making a payment?

Suppose I accidentally (or intentionally)send some money to a valid wallet address that no one owns currently. Now, at a later point in time, when someone creates an account which happen to have the same address to which I sent, will the wallet get those coins?

SparrowG

Posted 2012-12-20T19:55:08.127

Reputation: 47

Question was closed 2013-01-08T07:46:31.143

See this answer to understand the likelihood of this actually happening: http://bitcoin.stackexchange.com/a/3205/516

Highly Irregular 2012-12-20T20:18:54.037

No, that's not the spirit of this question. I was wondering how the "balance" is computed. For instance, suppose I send a few bitcoins to every valid key I generate. Then after a billion years, when the wallet is actually created, will the owner be able to spend those coins?SparrowG 2012-12-20T23:33:13.497

Could someone tell why the negative votes?SparrowG 2012-12-22T19:09:44.130

Though I didn't downvote it myself, it's probably because it's very similar to several other questions considering the implications of a hash collision.Highly Irregular 2012-12-22T19:54:04.550

Answers

3

Yes, it will.

To "receive" money one should have a private key corresponding to bitcoin address, nothing more. The keys do not bear any information related to their creation date.

Intrinsically, bitcoin protocol does not have such thing as "balance". Blockchain contains only the list of transactions. If you have correct keypair (with public key hashing to destination address) and the transaction output has not already been spent, then you can send this money somewhere. Your "balance" is just a sum of all transaction outputs you can spend. When importing new private key in original bitcoin client, it performs blockchain rescan to find out whether this new address has received any coins previously.

aland

Posted 2012-12-20T19:55:08.127

Reputation: 1 338

Is that scalable? Following from my comment in the question, in a more reasonable timeframe, say I send coins now and the address is created after billions of blocks. Will the entire blockchain be scanned?SparrowG 2012-12-20T23:36:41.413

1@SparrowG By default it will (in importprivkey RPC there is a switch to disable scanning, since currently it takes ~2 minutes). Also, there is "ultraprune" version of client, which stores not entire blockchain but only the list of unspent tranaction outputs, which makes such scanning pretty fast.aland 2012-12-21T05:16:59.593