Bitcoin Forum
October 22, 2018, 10:02:05 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: import SegWit address private key  (Read 79 times)
hugeblack
Sr. Member
****
Offline Offline

Activity: 476
Merit: 354


Do it with passion, or not at all.


View Profile WWW
February 10, 2018, 07:37:56 PM
 #1

Technically:
-what will happen "to the address format "if i import SegWit private key [P2SH or Bech32] into un-SegWit wallet "not support SegWit"?
-Can sign message using that private key "if new wallet support signing message"?

1540245725
Hero Member
*
Offline Offline

Posts: 1540245725

View Profile Personal Message (Offline)

Ignore
1540245725
Reply with quote  #2

1540245725
Report to moderator
1540245725
Hero Member
*
Offline Offline

Posts: 1540245725

View Profile Personal Message (Offline)

Ignore
1540245725
Reply with quote  #2

1540245725
Report to moderator
1540245725
Hero Member
*
Offline Offline

Posts: 1540245725

View Profile Personal Message (Offline)

Ignore
1540245725
Reply with quote  #2

1540245725
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
LoyceV
Legendary
*
Offline Offline

Activity: 1274
Merit: 2140


Self-made Legendary!


View Profile WWW
February 10, 2018, 08:02:20 PM
 #2

-what will happen "to the address format "if i import SegWit private key [P2SH or Bech32] into un-SegWit wallet "not support SegWit"?
That's easy to test: create a new segwit address from segwitaddress.org (note: I do not know if this site can be trusted for real use, do your own research!), and enter the private key for Wallet Details on bitaddress.org.
Result:
Segwit Address: 34mUxBdWrXzjuCy3iwHypQm1bZhJ7oCnJZ
Segwit Private Key: L1F1mh5m7rzYEsdioVHJRMZcrwss1AHwhCd3owDUnD33CAw7JiXa (don't use this one!)
Bitaddress.org:
Bitcoin Address Compressed: 1CqC1x4ZkwH1HTDAe7UpsEu6c545udvBPr

Quote
Can sign message using that private key "if new wallet support signing message"?
You can sign a message from 1CqC1x4ZkwH1HTDAe7UpsEu6c545udvBPr, but that doesn't prove anything about your SegWit address.

TheQuin
Hero Member
*****
Offline Offline

Activity: 700
Merit: 672


Freebitco.in Forum Dude https://bit.ly/2I9BVS2


View Profile WWW
February 11, 2018, 10:42:45 AM
Merited by Xynerise (1)
 #3

-what will happen "to the address format "if i import SegWit private key [P2SH or Bech32] into un-SegWit wallet "not support SegWit"?
That's easy to test: create a new segwit address from segwitaddress.org (note: I do not know if this site can be trusted for real use, do your own research!), and enter the private key for Wallet Details on bitaddress.org.
Result:
Segwit Address: 34mUxBdWrXzjuCy3iwHypQm1bZhJ7oCnJZ
Segwit Private Key: L1F1mh5m7rzYEsdioVHJRMZcrwss1AHwhCd3owDUnD33CAw7JiXa (don't use this one!)
Bitaddress.org:
Bitcoin Address Compressed: 1CqC1x4ZkwH1HTDAe7UpsEu6c545udvBPr

Quote
Can sign message using that private key "if new wallet support signing message"?
You can sign a message from 1CqC1x4ZkwH1HTDAe7UpsEu6c545udvBPr, but that doesn't prove anything about your SegWit address.

The Segwit addresses starting with 3 are nested inside a legacy address (staring 1). When you sign a message you are signing it with the private key, not the address. This is why these Segwit addresses cannot be used to sign messages. The bech32 addresses are native (not nested) so you can use their private keys to sign messages. Their private keys can only be imported into a wallet that supports Segwit with bech32 addresses.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!