Author

Topic: Import P2SH type private key (Read 240 times)

legendary
Activity: 3710
Merit: 1586
February 03, 2018, 08:02:07 PM
#3
Yes you can do this but you first need to convert the private key into a form that electrum accepts. Use this script: https://gist.github.com/AbdussamadA/dd46a31033f2eb9e5189ed0b849c4be8

Run it like this:

Code:
python3 electrum-convert-privkey.py  p2wpkh-p2sh | electrum -w wallet_file_path restore -



legendary
Activity: 3234
Merit: 5637
Blackjack.fun-Free Raffle-Join&Win $50🎲
February 03, 2018, 05:45:32 AM
#2
I have a segwit private key "P2SH type or started by 3 " and want to import it into electrum wallet.
I create a new wallet file and follow this https://bitcoinelectrum.com/importing-your-private-keys-into-electrum/.
get an error about doesn't support importing of addresses.
Can I add this kind of segwit?or only I can only import  bc1 "bech32 P2WPKH " type?

You can not import that private key in Electrum SegWit because is only support bech32 address format,but you can go around this problem by creating SegWit wallet in Electrum wich will support address starting with "3".Just follow instructions in this link-this tool can be used offline for your security-check Offline Usage.

https://www.reddit.com/r/Electrum/comments/7llnll/here_is_how_to_create_segwit_bip49_wallets_and/
legendary
Activity: 2702
Merit: 4002
February 03, 2018, 05:22:34 AM
#1
I have a segwit private key "P2SH type or started by 3 " and want to import it into electrum wallet.
I create a new wallet file and follow this https://bitcoinelectrum.com/importing-your-private-keys-into-electrum/.
get an error about doesn't support importing of addresses.
Can I add this kind of segwit?or only I can only import  bc1 "bech32 P2WPKH " type?
Jump to: