0

Is there a way to get the private key out of an P2SH-P2WPKH address, using Bitcoin Core 0.15.1? If not, is there a way to get the origin P2WPKH address to get the private key out of this address?

4
  • 2
    You can't go from a public key to a private key, segwit or no.
    – Claris
    Commented Dec 12, 2017 at 3:08
  • I have the addresses in my wallet. It's not from a public key.
    – DjangoSi
    Commented Dec 12, 2017 at 3:11
  • What wallet software are you using? Commented Dec 12, 2017 at 3:30
  • 0.15.1 bitcoin core
    – DjangoSi
    Commented Dec 12, 2017 at 3:34

1 Answer 1

1

In 0.15.1 you'll need to find the P2PKH address corresponding to the key (it's the argument to addwitnessaddress you used for creating the address in the first place), and pass that to dumpprivkey.

In 0.16, things will likely just work.

2
  • using listreceivedbyaddress makes it possible! Thanks
    – DjangoSi
    Commented Dec 12, 2017 at 4:42
  • I'm confused! How does that RPC help you? Commented Dec 12, 2017 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.