BitcoinCore 0.13 HD wallet chain structure

2

1

What are the "paths" of keys from BitcoinCore 0.13 HDWallet? As is described in BIP32 , 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).

Yevhen

Posted 2016-08-31T13:21:37.350

Reputation: 153

2You 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 2016-08-31T13:35:20.707

Answers

1

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.

Pieter Wuille

Posted 2016-08-31T13:21:37.350

Reputation: 54 032

So the total key number is 2^31, right?Yevhen 2016-08-31T13:42:16.983

What does key number mean?Pieter Wuille 2016-08-31T13:49:47.507

1@Yevhen: right, maximal amount of keys (Bitcoin Core only use hardened keys) is 2^31.Jonas Schnelli 2016-08-31T14:01:31.667