P2SH-P2WPKH private key or revert to P2WPKH

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?

DjangoSi

Posted 2017-12-12T03:07:31.717

Reputation: 3

1You can't go from a public key to a private key, segwit or no.Anonymous 2017-12-12T03:08:07.040

I have the addresses in my wallet. It's not from a public key.DjangoSi 2017-12-12T03:11:52.580

What wallet software are you using?MeshCollider 2017-12-12T03:30:35.437

0.15.1 bitcoin coreDjangoSi 2017-12-12T03:34:59.437

Answers

0

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.

Pieter Wuille

Posted 2017-12-12T03:07:31.717

Reputation: 54 032

using listreceivedbyaddress makes it possible! ThanksDjangoSi 2017-12-12T04:42:03.373

I'm confused! How does that RPC help you?Pieter Wuille 2017-12-12T07:03:25.127