dumpprivkey and dumpwallet give different adress #12358

issue seaChris opened this issue on February 5, 2018
  1. seaChris commented at 4:25 PM on February 5, 2018: none

    Windows 10. bitcoin 0.16 rc2

    I used receive and ticked generate bech32 adress

    dumpwallet gave me a file with all adresses and privkeys, however the bech32 adress is not visible in there

    However when I use dumpprivkey bc1q5qk9vteggs707uukmlywjft9uxcgjkh2vhc0tl it gives me the privkey which is L3kp5RLGeGx7UF8RDuynfGPW46dNvy8m3AiTSbrxnditXyr22qi3

    Searching for "L3kp5RLGeGx7UF8RDuynfGPW46dNvy8m3AiTSbrxnditXyr22qi3" in the dumpwallet file gives me the privkey L3kp5RLGeGx7UF8RDuynfGPW46dNvy8m3AiTSbrxnditXyr22qi3 and the adress 1FbvEFxG1YakxckMVaQPeNS9k7m2LUuo4E

  2. sipa commented at 7:06 PM on February 5, 2018: member

    Yes, this is expected. dumpwallet doesn't know to check for possibly used SegWit addresses, and doesn't list them. This is mentioned in the 0.16 release notes, and will be fixed in a later release (see #12315).

  3. fanquake added the label RPC/REST/ZMQ on Feb 5, 2018
  4. seaChris commented at 10:21 PM on February 6, 2018: none

    How can "noob" that is using 0.16 recover/access his coins then? There should be a user-friendly tutorial maybe linked from the release notes. Otherwise I would say that this release should be "experimental" or something.

    Some users might have a old laptop that has his wifi antenne/board/bluetooth etc removed and is used as a cold wallet. Generates 1000 adresses and then uses the dumpwallet to make a safe "backup" but might have trouble with recovering. :/

    Or would the adresses be recovered if I make a dumpwallet and import it somehow later?

  5. sipa commented at 10:29 PM on February 6, 2018: member

    @chrotz It's just the comment that is wrong. Dumping/importing will work fine.

  6. JayKopinski commented at 4:00 PM on February 23, 2018: none

    @sipa with regards to 0.16.0 rc4 after dumping the priv key, killing the .dat and reimporting it, it then displays legacy, P2SH and bech32 addresses. I take it this is normal behaviour?

  7. laanwj closed this on Mar 5, 2018

  8. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me