dumpprivkey [wrapped witness address] #12037

issue nopara73 opened this issue on December 27, 2017
  1. nopara73 commented at 9:44 PM on December 27, 2017: none

    A friend of mine sent considerable amount of LTC to an exchange, but accidentally to a P2SH over P2WPKH Bitcoin address.

    The exchange operator told him he is using Bitcoin Core and dumpprivkey [wrapped witness address] doesn't work and he does not have time to figure out how to fix the user error.

    So I tested and indeed that's the case. I called getnewaddress and fed addwitnessaddress with its output.
    So the corresponding private key cannot be acquired with dumpprivkey [wrapped witness address].

    What workarounds are there to tackle this issue?

  2. nopara73 renamed this:
    `dumpprivkey [wrapped witness address]`
    dumpprivkey [wrapped witness address]
    on Dec 27, 2017
  3. achow101 commented at 9:53 PM on December 27, 2017: member

    Use the address that was fed to addwitnessaddresss.

    On December 27, 2017 4:45:03 PM nopara73 notifications@github.com wrote:

    A friend of mine sent considerable amount of LTC to an exchange, but accidentally to a P2SH over P2WPKH Bitcoin address.

    The exchange operator told him he is using Bitcoin Core and dumpprivkey [wrapped witness address] doesn't work and he does not have time to figure out how to fix the user error.

    So I tested and indeed that's the case. I called getnewaddress and fed addwitnessaddress with its output. So the corresponding private key cannot be get with dumpprivkey.

    What workarounds are there to tackle this issue.

    -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: #12037

  4. fanquake commented at 10:41 PM on December 27, 2017: member

    Please ask this in the #bitcoin IRC channel, on the bitcoin stack exchange, or in the bitcoin-core slack. This issue tracker isn’t for general user support.

  5. fanquake closed this on Dec 27, 2017

  6. nopara73 commented at 2:21 PM on December 28, 2017: none

    @achow101 Is there a simple way to find the address fed to addwitnessaddress based on the witness address?
    Bear in mind, the owner of the exchange is "busy" to write a script on his own and he's not going to run the script someone else writes for that.
    We can either find a step by step solution that can be manually typed into RPC, which I suspect doesn't exist, or wait this PR out: #11403

  7. sipa commented at 2:25 PM on December 28, 2017: member

    With #11403 dumpprivkey will be able to dump the key for witness addresses.

  8. MarcoFalke 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-05-02 18:15 UTC

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