<p>Unfortunately, Bitcoin Core itself does not provide methods to generate private keys from master key. However, there are libraries that can produce correct keys from xprv string (chain m/iH/0/k with hardened keys according to BIP0032) - I used <a href="https://github.com/prusnak/bip32utils" rel="noreferrer">https://github.com/prusnak/bip32utils</a> for Python.</p>

CC BY-SA 3.0
2017-03-30T13:18:01.677Z
2017-03-30T13:18:01.677Z
talalai88
<p>Since version 0.13.0 Bitcoin Core supports HD wallets. In a .txt dump of the wallet (created by JSON-RPC <strong>dumpwallet</strong> command), one can find an "extended private masterkey" which is intended to be used for generation of rest of the private keys.
How can lost private keys be restored with the help of the mentioned masterkey in Bitcoin Core? I have not found any RPC method that would accept the masterkey to generate private keys</p>

CC BY-SA 3.0
2017-04-11T14:46:17.820Z
related: [How do I retrieve my backed up wallet to Bitcoin Core?](http://bitcoin.stackexchange.com/a/52617/5406)
Murch
<bitcoin-core><bip32-hd-wallets>
How to restore Bitcoin Core HD wallet private keys by master key?
talalai88
# How to restore Bitcoin Core HD wallet private keys by master key?

(Asked by: username_0 on 2017-03-27)

Since version 0.13.0 Bitcoin Core supports HD wallets. In a .txt dump of the wallet (created by JSON-RPC **dumpwallet** command), one can find an "extended private masterkey" which is intended to be used for generation of rest of the private keys.
How can lost private keys be restored with the help of the mentioned masterkey in Bitcoin Core? I have not found any RPC method that would accept the masterkey to generate private keys

**Tags:** bitcoin-core, bip32-hd-wallets

> **Comments:**
> **username_1**: related: [How do I retrieve my backed up wallet to Bitcoin Core?](http://bitcoin.stackexchange.com/a/52617/5406)  

---

## 1 answers

### Answer by username_0 on 2017-03-30. Score: 6 | Accepted answer

Unfortunately, Bitcoin Core itself does not provide methods to generate private keys from master key. However, there are libraries that can produce correct keys from xprv string (chain m/iH/0/k with hardened keys according to BIP0032) - I used <https://github.com/prusnak/bip32utils> for Python.


---

