Title: [Solved] Import bech32 address and priv key into new Electrum wallet Post by: darkv0rt3x on June 16, 2022, 10:57:30 AM Hello.
I tried to import the priv key of a bech32 address into a newly created wallet in Electrum, however, the address imported starts not by "bc1" but by the old "1" address type. This Electrum wallet is offline and has no internet connectivity. How can I make the bech32 address type to show up in Electrum instead of the old p2sh?? Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: OmegaStarScream on June 16, 2022, 10:58:08 AM Make sure to add the prefix before the private keys, so instead of just pasting the PKs, do this instead:
Code: p2wpkh:private_key_here Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: darkv0rt3x on June 16, 2022, 11:07:32 AM Make sure to add the prefix before the private keys, so instead of just pasting the PKs, do this instead: Code: p2wpkh:private_key_here Oh, ok, thank you sir! And I have one other quesiton: Does Electrum alreadu supports the p2tr addresses or it's still too soon? :) Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: bitmover on June 16, 2022, 11:09:30 AM And I have one other quesiton: Does Electrum alreadu supports the p2tr addresses or it's still too soon? :) It is planned, but not implemented yet: https://github.com/spesmilo/electrum/issues/7544 Quote SomberNight commented on Nov 17, 2021 Yes, naturally we plan to add taproot support. Initially only singlesig wallets with keypath spends will be implemented. To be able to create watch-only versions of these wallets (required before we can expose it to users), some wallet-refactoring and wizard changes are needed, as we don't want to extend the current x/y/zpub scheme. Most likely some form of output script descriptors should be used. No ETA, but it is on the TODO list. Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: darkv0rt3x on June 16, 2022, 11:27:47 AM Make sure to add the prefix before the private keys, so instead of just pasting the PKs, do this instead: Code: p2wpkh:private_key_here Out of curiosity: What are the prefixes for the other types of addresses? It's their designations alone? Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: OmegaStarScream on June 16, 2022, 11:31:01 AM Out of curiosity: What are the prefixes for the other types of addresses? It's their designations alone? On the PK import window, there is an "info" button which you can use to see the types/prefixes: https://i.imgur.com/Y7AHoJy.png Title: Re: Import bech32 address and priv key into new Electrum wallet Post by: darkv0rt3x on June 16, 2022, 11:34:01 AM Out of curiosity: What are the prefixes for the other types of addresses? It's their designations alone? On the PK import window, there is an "info" button which you can use to see the types/prefixes: https://i.imgur.com/Y7AHoJy.png Oh crap. I feel dumb... :p Thanks |