<p>Any derivation path with an apostrophe (<code>'</code>) signifies that that index should use hardened derivation. Hardened derivation means that you can only use the master private key. So with just an xpub, you cannot derive the full path.</p>

<p>Usually what happens with BIP 44 is that you generate a master private key, derive the keys for the hardened parts of the path, and then use the public key of the last hardened part to derive the addresses using non-hardened derivation.</p>

<p>So you would derive the private key for <code>m/44'/0'/0'</code> using the master private key. Then take the xpub of that derived private key and derive the remaining keys with path <code>m/0/i</code>.</p>

CC BY-SA 3.0
2018-01-22T03:12:42.400Z
How to derive change address from m/0/i?
Tailer
CC BY-SA 3.0
2018-01-22T03:21:17.757Z
The change addresses would be at `m/1/i`.
Ava Chow
CC BY-SA 3.0
2018-01-16T20:17:15.657Z
2018-01-16T20:17:15.657Z
Ava Chow
<p>I'm just wondering if it's possible to generate HD address using xPub?</p>

<p>I tried to create HD address using BitWASP-PHP with the following path:</p>

<pre><code>m / purpose' / coin_type' / account' / change / address_index

m/44/0'/0'/0/1
</code></pre>

<p>but the response is: </p>

<blockquote>
  <p>Can't derive a hardened key without the private key</p>
</blockquote>

<p>I know that I can do it with Bip32 with the following path: 0/addressIndex</p>

<p>but I would like to use bip44.</p>

<address-generation><bip32-hd-wallets><bip44>
generate HD addresses using publicKey Bip44
Tailer
# generate HD addresses using publicKey Bip44

(Asked by: username_0 on 2018-01-16)

I'm just wondering if it's possible to generate HD address using xPub?

I tried to create HD address using BitWASP-PHP with the following path:

```
m / purpose' / coin_type' / account' / change / address_index

m/44/0'/0'/0/1

```

but the response is:

> Can't derive a hardened key without the private key

I know that I can do it with Bip32 with the following path: 0/addressIndex

but I would like to use bip44.

**Tags:** address-generation, bip32-hd-wallets, bip44


---

## 1 answers

### Answer by username_1 on 2018-01-16. Score: 2 | Accepted answer

Any derivation path with an apostrophe (`'`) signifies that that index should use hardened derivation. Hardened derivation means that you can only use the master private key. So with just an xpub, you cannot derive the full path.

Usually what happens with BIP 44 is that you generate a master private key, derive the keys for the hardened parts of the path, and then use the public key of the last hardened part to derive the addresses using non-hardened derivation.

So you would derive the private key for `m/44'/0'/0'` using the master private key. Then take the xpub of that derived private key and derive the remaining keys with path `m/0/i`.

> **Comments:**
> **username_0**: How to derive change address from m/0/i?  
> **username_1**: The change addresses would be at `m/1/i`.  

---

