Bitcoin Forum
January 20, 2019, 08:32:24 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: import SegWit address private key  (Read 96 times)
hugeblack
Sr. Member
****
Offline Offline

Activity: 574
Merit: 380


BTC2USD: Why Would I sell the future for the past?


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

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: 1372
Merit: 2639


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: 798
Merit: 677


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:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
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!