I was curious when you do a dumpwallet in the default bitcoin client the output file gives you an xprv and then followed by WIF keys, corresponding address, and the hdkeypath.

I noticed the order of the keys are not sequential with the keypath. For example when I did a dump of a test wallet with no balances I get:


Is there a method behind the order or is it all random?

  • Might be stored in a hash map internally so it would seem random but perhaps it's in order by public key hash. – pinhead Dec 18 '20 at 0:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.