Bitcoin Forum

Bitcoin => Armory => Topic started by: ghrunda on August 23, 2020, 08:19:32 PM



Title: Convert keys from P2SH-P2PK to p2wpkh-p2sh
Post by: ghrunda on August 23, 2020, 08:19:32 PM
Is it possible to convert keys as P2SH-P2PK to p2wpkh-p2sh in some way? My problem is that I want to export my private keys into another wallet. However there isn't any other wallet that supports P2SH-P2PK so I need to convert them if possible.
(My balance is 0 so it isn't possible to create a transaction manually as recommended in this post https://bitcointalk.org/index.php?topic=2605402.msg27777791#msg27777791 (https://bitcointalk.org/index.php?topic=2605402.msg27777791#msg27777791))


Title: Re: Convert keys from P2SH-P2PK to p2wpkh-p2sh
Post by: goatpig on August 23, 2020, 08:43:09 PM
There is no such thing as "conversion", you have to spend the coins from one script type to another.


Title: Re: Convert keys from P2SH-P2PK to p2wpkh-p2sh
Post by: BitMaxz on August 23, 2020, 09:09:56 PM
Never seen a guide on converting nested to a legacy wallet, unlike Segwit addresses where you can convert Segwit to a legacy wallet for verifying the signed message. Source: "How to verify SegWit signature with Brainwallet? (https://bitcointalk.org/index.php?topic=5198585.0)"

Or Converting Electrum segwit WIF to standard WIF.
The source can be found here "[GUIDE] Importing Electrum Segwit Private Key Into Bitcoin Core (And Vice Versa) (https://bitcointalk.org/index.php?topic=3383265.0)"



Title: Re: Convert keys from P2SH-P2PK to p2wpkh-p2sh
Post by: ghrunda on August 24, 2020, 06:01:14 PM
There is no such thing as "conversion", you have to spend the coins from one script type to another.

Ok I see. I'm trying to import the keys into electrum. However some of my keys is in the "wrong" script type so I can't import them :/