Bitcoin Forum
May 09, 2024, 07:33:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Solved] Import bech32 address and priv key into new Electrum wallet  (Read 110 times)
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
June 16, 2022, 10:57:30 AM
Last edit: June 16, 2022, 11:23:12 AM by darkv0rt3x
 #1

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??

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
1715240011
Hero Member
*
Offline Offline

Posts: 1715240011

View Profile Personal Message (Offline)

Ignore
1715240011
Reply with quote  #2

1715240011
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
June 16, 2022, 10:58:08 AM
Merited by bitmover (2), ABCbits (1), hosseinimr93 (1), DdmrDdmr (1), dkbit98 (1), BlackHatCoiner (1), darkv0rt3x (1)
 #2

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


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
June 16, 2022, 11:07:32 AM
Merited by bitmover (1)
 #3

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? Smiley

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
bitmover
Legendary
*
Offline Offline

Activity: 2296
Merit: 5928


bitcoindata.science


View Profile WWW
June 16, 2022, 11:09:30 AM
Merited by ABCbits (1), Pmalek (1), hosseinimr93 (1), darkv0rt3x (1)
 #4

And I have one other quesiton:
Does Electrum alreadu supports the p2tr addresses or it's still too soon? Smiley

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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
June 16, 2022, 11:27:47 AM
 #5

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?

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
June 16, 2022, 11:31:01 AM
Merited by darkv0rt3x (1)
 #6

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:


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
June 16, 2022, 11:34:01 AM
 #7

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:



Oh crap. I feel dumb... :p
Thanks

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!