<p>When the wallet initializes, it will generate a master private key for the you as part of the initialization. All subsequently generated keypairs will be related to the master private key, this is called a 'Hierarchical Deterministic' Wallet (HD wallet). </p>

<p>An HD wallet is nice, because you only need to backup the seed phrase that generates your master private key, rather than backup every individual address. </p>

CC BY-SA 3.0
2017-12-10T21:50:32.657Z
2017-12-10T21:50:32.657Z
chytrik
<p>Bitcoin core automatically generates your private keys (or if it's an HD wallet, your seed) when you first use it, and stores them in a file called <code>wallet.dat</code> in your <a href="https://en.bitcoin.it/wiki/Data_directory" rel="nofollow noreferrer">data directory</a>. You don't choose private keys, software generates them for you cryptographically. For this reason, if you're using Bitcoin Core it's a good idea to <a href="https://bitcoin.org/en/secure-your-wallet" rel="nofollow noreferrer">encrypt your wallet (but don't lose the passphrase!) and backup your wallet.dat file</a>.</p>

CC BY-SA 3.0
2017-12-10T23:33:46.633Z
2017-12-10T23:33:46.633Z
Adam Millerchip
<p>I downloaded bitcoin core from github. Now I have imported the complete blockchain and am examining the bitcoin core interface. If I click on >File >>Receiving addresses I see that bitcoin core has already created a receiving address for me. I have not yet chosen a private key (as far as I know) so how can bitcoin core generate a receiving address? How is the receiving address created?</p>

<bitcoin-core><address-generation><receiving>
How does bitcoin core generate a receiving address without using my private key?
OldStick00001
# How does bitcoin core generate a receiving address without using my private key?

(Asked by: username_0 on 2017-12-10)

I downloaded bitcoin core from github. Now I have imported the complete blockchain and am examining the bitcoin core interface. If I click on >File >>Receiving addresses I see that bitcoin core has already created a receiving address for me. I have not yet chosen a private key (as far as I know) so how can bitcoin core generate a receiving address? How is the receiving address created?

**Tags:** bitcoin-core, address-generation, receiving


---

## 2 answers

### Answer by username_1 on 2017-12-10. Score: 2

When the wallet initializes, it will generate a master private key for the you as part of the initialization. All subsequently generated keypairs will be related to the master private key, this is called a 'Hierarchical Deterministic' Wallet (HD wallet).

An HD wallet is nice, because you only need to backup the seed phrase that generates your master private key, rather than backup every individual address.


---

### Answer by username_2 on 2017-12-10. Score: 2

Bitcoin core automatically generates your private keys (or if it's an HD wallet, your seed) when you first use it, and stores them in a file called `wallet.dat` in your [data directory](https://en.bitcoin.it/wiki/Data_directory). You don't choose private keys, software generates them for you cryptographically. For this reason, if you're using Bitcoin Core it's a good idea to [encrypt your wallet (but don't lose the passphrase!) and backup your wallet.dat file](https://bitcoin.org/en/secure-your-wallet).


---

