<p>A wallet is not a single private key; it is an ever-growing collection of private keys.  Each address has a private key stored in the wallet.  Each time a new address is generated, so is a new private key.  This is even true for HD wallets, albeit the private keys are generated and stored differently.</p>

CC BY-SA 3.0
2018-02-06T03:28:05.253Z
2018-02-06T03:28:05.253Z
Jestin
<p>When I run:</p>

<pre><code>bitcoin-cli getnewaddress
</code></pre>

<p>My bitcoin node returns me a brand new address. If I send BTC to this address, does the payment go to my main wallet.dat wallet (address generated from old/same private key). Or does bitcoind generate a new wallet/private key?</p>

<bitcoind>
Does bitcoind generate address using the same private key from wallet.dat?
2523454
# Does bitcoind generate address using the same private key from wallet.dat?

(Asked by: username_0 on 2018-02-06)

When I run:
bitcoin-cli getnewaddress

My bitcoin node returns me a brand new address. If I send BTC to this address, does the payment go to my main wallet.dat wallet (address generated from old/same private key). Or does bitcoind generate a new wallet/private key?

**Tags:** bitcoind


---

## 1 answers

### Answer by username_1 on 2018-02-06. Score: 2

A wallet is not a single private key; it is an ever-growing collection of private keys. Each address has a private key stored in the wallet. Each time a new address is generated, so is a new private key. This is even true for HD wallets, albeit the private keys are generated and stored differently.


---

