<p>It uses <code>m/0'/0'/i'</code> with <code>i</code> incrementing over time.</p>

<p>The <code>dumpwallet</code> RPC command will produce a text file with all private keys in it, including the BIP32 seed.</p>

CC BY-SA 3.0
2016-08-31T13:42:16.983Z
So the total key number is 2^31, right?
Yevhen
CC BY-SA 3.0
2016-08-31T13:49:47.507Z
What does key number mean?
Pieter Wuille
CC BY-SA 3.0
2016-08-31T14:01:31.667Z
@Yevhen: right, maximal amount of keys (Bitcoin Core only use hardened keys) is 2^31.
Jonas Schnelli
CC BY-SA 3.0
2016-08-31T13:37:26.883Z
2016-09-02T08:43:07.473Z
2016-09-02T08:43:07.473Z
Pieter Wuille
<p>What are the "paths" of keys from BitcoinCore 0.13 HDWallet?
As is described in <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#master-key-generation" rel="nofollow">BIP32</a>
, I consider a path to be the route from the root node to the key node. For example, <code>m/0'/0'/1'</code> stands for the second hardened child of the first hardened child of the first hardened child of the master root node.</p>

<p>I want to know that to be able to regenerate this chain myself using some bitcoin library in case gaps in my chain will exceed 20 keys (current default gap value of BitcoinCore 0.13).</p>

CC BY-SA 3.0
2016-08-31T13:35:20.707Z
You can just call `getnewaddress` to recreate you addresses after restoring a backup beyond what the keypool has, and possibly rescan to find old transactions to them. The Bitcoin Core HD wallet support does not currently have any gap detection.
Pieter Wuille
<bitcoin-core><bip32-hd-wallets>
BitcoinCore 0.13 HD wallet chain structure
Yevhen
# BitcoinCore 0.13 HD wallet chain structure

(Asked by: username_0 on 2016-08-31)

What are the "paths" of keys from BitcoinCore 0.13 HDWallet?
As is described in [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#master-key-generation)
, I consider a path to be the route from the root node to the key node. For example, `m/0'/0'/1'` stands for the second hardened child of the first hardened child of the first hardened child of the master root node.

I want to know that to be able to regenerate this chain myself using some bitcoin library in case gaps in my chain will exceed 20 keys (current default gap value of BitcoinCore 0.13).

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

> **Comments:**
> **username_1**: You can just call `getnewaddress` to recreate you addresses after restoring a backup beyond what the keypool has, and possibly rescan to find old transactions to them. The Bitcoin Core HD wallet support does not currently have any gap detection.  

---

## 1 answers

### Answer by username_1 on 2016-08-31. Score: 1 | Accepted answer

It uses `m/0'/0'/i'` with `i` incrementing over time.

The `dumpwallet` RPC command will produce a text file with all private keys in it, including the BIP32 seed.

> **Comments:**
> **username_0**: So the total key number is 2^31, right?  
> **username_1**: What does key number mean?  
> **username_2**: @username_0: right, maximal amount of keys (Bitcoin Core only use hardened keys) is 2^31.  

---

