<p>When you create an address, it is stored in your wallet. It is not recorded on the blockchain until someone executes a transaction that includes the address.</p>

<p>It is not necessary to reserve your address since <strong>it is statistically impossible that someone else will generate the same address</strong> (with some caveats, see below). Here is what happens when you create a new address in your wallet:</p>

<ol>
<li><p>Your private key (for spending funds) is derived from a random number between 1 and 115792089237316195423570985008687907852837564279074904382605163141518161494337. Assuming the number was <a href="http://arstechnica.com/security/2014/01/how-the-nsa-may-have-put-a-backdoor-in-rsas-cryptography-a-technical-primer/" rel="nofollow"><strong>truly random</strong></a>, you don't need to worry about someone <a href="https://www.schneier.com/blog/archives/2009/09/the_doghouse_cr.html" rel="nofollow">guessing this number</a> since the number of possibilities is so ridiculously large.</p></li>
<li><p>The matching public key (for receiving funds) is derived from the private key <a href="http://en.wikipedia.org/wiki/Public-key_cryptography" rel="nofollow">in a way that is irreversible</a>, and is used to generate the address where you can receive payments. <a href="https://bitcointalk.org/index.php?topic=24268.0" rel="nofollow">There are 2^160 possible addresses</a> (1461501637330902918203684832716283019655932542976).</p></li>
<li><p>The private and public keys are saved together as a "pair" in your wallet.</p></li>
</ol>

CC BY-SA 3.0
2014-03-11T07:58:33.167Z
2014-03-13T23:54:27.907Z
2014-03-13T23:54:27.907Z
CgodLEY
<p>To make this as simple as possible: When you create an address, you're the only one who knows how you created it. To spend funds sent to an address, you must know how that address was created.</p>

<p>To be a little more precise, Bitcoin uses an irreversible operation in the address generation process. You take a large random number and store that number anywhere you like. You then apply that irreversible operation to generate the address. Now, if anyone sends Bitcoins to that address, you use the large random number to claim them.</p>

CC BY-SA 3.0
2014-08-08T13:26:52.427Z
Wait. If I generate a 3-digit number, the irreversibe operation would be to erase the last digit. It is irreversible because I do not know which of 3-ditit nums was used to produce my (2-digit) address. Now, somebody sends a sum to the 2-digit address. Which of the 3-digits numbers are suitable to claim the transfer?
Val
CC BY-SA 3.0
2014-03-11T08:17:28.507Z
2014-03-11T08:17:28.507Z
David Schwartz
<p>Bitcoin addresses are stored wherever you like. In your wallet, with an exchange, on your paper napkin. The same with the private keys that give access to the value linked to those addresses. Those too can be stored wherever you like (but you'll want to store those securely).</p>

<p>You have ownership of the funds tied to your address by sole virtue of the fact that it is nearly impossible for anyone else to generate the private key for that address. There is no central place which says your address is legally yours. It isn't yours in <em>that</em> sense. Someone else could take control of it easily if they knew your private key. Then it is just as much theirs as yours. Until that time when your key is compromised the address is simply <em>defacto</em> yours because no-one else is ever going to be able to access the funds tied to it, except you.</p>

CC BY-SA 3.0
2014-03-14T02:56:24.247Z
2014-03-14T02:56:24.247Z
Bradley Thomas
<p>I understand that Bitcoin is a distributed system based on the blockchain, and I understand that transfers/transactions are stored in the blockchain, which exists on many servers around the internet.</p>

<p>But where are wallet/account addresses stored?</p>

<p>I understand that there are different kinds of wallet apps, local, online, etc. But the number/string that represents the wallet address within the Bitcoin ecosystem: where does that primarily live? When you create a wallet and produce that address number, do you take dibs on it in some way such that nobody else can get the same address number? What prevents duplication? Is there a null transaction recorded in the blockchain everytime a new wallet is created for the purpose of taking dibs on the wallet address?</p>

<p>I have no idea what I'm saying or talking about--please elucidate!</p>

CC BY-SA 3.0
2014-03-11T07:33:13.360Z
possible duplicate of [Is Each Bitcoin Address Unique?](http://bitcoin.stackexchange.com/questions/8804/is-each-bitcoin-address-unique)
Greg Hewgill
CC BY-SA 3.0
2014-03-11T09:10:41.013Z
Sort of duplicate but here I think its worth also mentioning that the 'number/string that represents the wallet address' is in fact a Public / Private Key Pair.  It is an implementation based on PGP concepts.http://en.wikipedia.org/wiki/Public-key_cryptography
hafnero
CC BY-SA 3.0
2014-03-11T22:12:24.597Z
possible duplicate of [What's the difference between a wallet and an address?](http://bitcoin.stackexchange.com/questions/13059/whats-the-difference-between-a-wallet-and-an-address)
Murch
CC BY-SA 3.0
2014-03-11T22:15:49.123Z
possible duplicate of [At what point is a new wallet known by the Bitcoin network?](http://bitcoin.stackexchange.com/q/13225/5406)
Murch
<wallet><address>
Within the Bitcoin ecosystem where are wallet addresses stored/reserved?
Daniel12983
# Within the Bitcoin ecosystem where are wallet addresses stored/reserved?

(Asked by: username_0 on 2014-03-11)

I understand that Bitcoin is a distributed system based on the blockchain, and I understand that transfers/transactions are stored in the blockchain, which exists on many servers around the internet.

But where are wallet/account addresses stored?

I understand that there are different kinds of wallet apps, local, online, etc. But the number/string that represents the wallet address within the Bitcoin ecosystem: where does that primarily live? When you create a wallet and produce that address number, do you take dibs on it in some way such that nobody else can get the same address number? What prevents duplication? Is there a null transaction recorded in the blockchain everytime a new wallet is created for the purpose of taking dibs on the wallet address?

I have no idea what I'm saying or talking about--please elucidate!

**Tags:** wallet, address

> **Comments:**
> **username_1**: possible duplicate of [Is Each Bitcoin Address Unique?](http://bitcoin.stackexchange.com/questions/8804/is-each-bitcoin-address-unique)  
> **username_2**: Sort of duplicate but here I think its worth also mentioning that the 'number/string that represents the wallet address' is in fact a Public / Private Key Pair.  It is an implementation based on PGP concepts.http://en.wikipedia.org/wiki/Public-key_cryptography  
> **username_3**: possible duplicate of [What's the difference between a wallet and an address?](http://bitcoin.stackexchange.com/questions/13059/whats-the-difference-between-a-wallet-and-an-address)  
> **username_3**: possible duplicate of [At what point is a new wallet known by the Bitcoin network?](http://bitcoin.stackexchange.com/q/13225/5406)  

---

## 3 answers

### Answer by username_4 on 2014-03-11. Score: 3

When you create an address, it is stored in your wallet. It is not recorded on the blockchain until someone executes a transaction that includes the address.

It is not necessary to reserve your address since **it is statistically impossible that someone else will generate the same address** (with some caveats, see below). Here is what happens when you create a new address in your wallet:

1. Your private key (for spending funds) is derived from a random number between 1 and 115792089237316195423570985008687907852837564279074904382605163141518161494337. Assuming the number was [**truly random**](http://arstechnica.com/security/2014/01/how-the-nsa-may-have-put-a-backdoor-in-rsas-cryptography-a-technical-primer/), you don't need to worry about someone [guessing this number](https://www.schneier.com/blog/archives/2009/09/the_doghouse_cr.html) since the number of possibilities is so ridiculously large.
2. The matching public key (for receiving funds) is derived from the private key [in a way that is irreversible](http://en.wikipedia.org/wiki/Public-key_cryptography), and is used to generate the address where you can receive payments. [There are 2^160 possible addresses](https://bitcointalk.org/index.php?topic=24268.0) (1461501637330902918203684832716283019655932542976).
3. The private and public keys are saved together as a "pair" in your wallet.


---

### Answer by username_5 on 2014-03-11. Score: 1

To make this as simple as possible: When you create an address, you're the only one who knows how you created it. To spend funds sent to an address, you must know how that address was created.

To be a little more precise, Bitcoin uses an irreversible operation in the address generation process. You take a large random number and store that number anywhere you like. You then apply that irreversible operation to generate the address. Now, if anyone sends Bitcoins to that address, you use the large random number to claim them.

> **Comments:**
> **username_6**: Wait. If I generate a 3-digit number, the irreversibe operation would be to erase the last digit. It is irreversible because I do not know which of 3-ditit nums was used to produce my (2-digit) address. Now, somebody sends a sum to the 2-digit address. Which of the 3-digits numbers are suitable to claim the transfer?  

---

### Answer by username_7 on 2014-03-14. Score: 0

Bitcoin addresses are stored wherever you like. In your wallet, with an exchange, on your paper napkin. The same with the private keys that give access to the value linked to those addresses. Those too can be stored wherever you like (but you'll want to store those securely).

You have ownership of the funds tied to your address by sole virtue of the fact that it is nearly impossible for anyone else to generate the private key for that address. There is no central place which says your address is legally yours. It isn't yours in *that* sense. Someone else could take control of it easily if they knew your private key. Then it is just as much theirs as yours. Until that time when your key is compromised the address is simply *defacto* yours because no-one else is ever going to be able to access the funds tied to it, except you.


---

