<p>According to <a href="https://en.bitcoin.it/wiki/Deterministic_wallet" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Deterministic_wallet</a></p>
<blockquote>
<p>Master public key</p>
<p>Certain types of deterministic wallet (BIP0032, Armory, Coinkite and Coinb.in ) additionally allow for the complete separation of private and public key creation for greater security and convenience. In this model a server can be set up to only know the Master Public Key (MPK) of a particular deterministic wallet. This allows the server to create as many public keys as is necessary for receiving funds, but a compromise of the MPK will not allow an attacker to spend from the wallet.</p>
</blockquote>
<p>So yes, if that is correct, with a BIP32 wallet you can create all the HD addresses from the master public key. The method is explained a little in <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Public_parent_key_rarr_public_child_key" rel="nofollow noreferrer">BIP32</a>.</p>
<p>There is a complication from choice of hardened or non-hardened keys etc. See <a href="https://bitcoin.stackexchange.com/q/37488/13866">ELI5: What&#39;s the difference between a child-key and a hardened child-key in BIP32</a></p>

CC BY-SA 4.0
2022-10-14T09:31:24.510Z
2022-10-14T09:37:25.493Z
2022-10-14T09:37:25.493Z
RedGrittyBrick
<p>Is it possible to retrieve all the infinite addresses of a HD wallet from just its parent public key?</p>

<bip32-hd-wallets>
A way to access all child addresses from HD wallet xpub
Daniel Martinez
# A way to access all child addresses from HD wallet xpub

(Asked by: username_0 on 2022-10-14)

Is it possible to retrieve all the infinite addresses of a HD wallet from just its parent public key?

**Tags:** bip32-hd-wallets


---

## 1 answers

### Answer by username_1 on 2022-10-14. Score: 1 | Accepted answer

According to <https://en.bitcoin.it/wiki/Deterministic_wallet>

> Master public key
>
> Certain types of deterministic wallet (BIP0032, Armory, Coinkite and Coinb.in ) additionally allow for the complete separation of private and public key creation for greater security and convenience. In this model a server can be set up to only know the Master Public Key (MPK) of a particular deterministic wallet. This allows the server to create as many public keys as is necessary for receiving funds, but a compromise of the MPK will not allow an attacker to spend from the wallet.

So yes, if that is correct, with a BIP32 wallet you can create all the HD addresses from the master public key. The method is explained a little in [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Public_parent_key_rarr_public_child_key).

There is a complication from choice of hardened or non-hardened keys etc. See [ELI5: What's the difference between a child-key and a hardened child-key in BIP32](https://bitcoin.stackexchange.com/q/37488/13866)


---

