Bitcoin Forum
June 21, 2024, 11:15:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: is there a way to calculate WIF of a P2SH Segwit uncompressed address  (Read 182 times)
crofrihosl (OP)
Jr. Member
*
Offline Offline

Activity: 56
Merit: 3


View Profile
September 27, 2019, 04:38:52 PM
 #1

example

WIF compressed:
Code:
KxULHn3XGW9HaGZLGrkgfxDfLGogn7s9iB31pTdXeQmsRQFV6CE1
Segwit P2SH:
Code:
3QHF8WWyXL5u3vDBHrZYrBpW7evS2x6URK
uncompressed Segwit P2SH:
Code:
33JWNnBSJWLLoMZkijQb9XLaALZco5RaZq
How to calculate the WIF that gives you uncompressed Segwit P2SH: ?
Code:
33JWNnBSJWLLoMZkijQb9XLaALZco5RaZq

thank you in advance
darosior
Sr. Member
****
Offline Offline

Activity: 279
Merit: 435


View Profile
September 27, 2019, 05:12:49 PM
 #2

Hi,

Quote
How to calculate the WIF that gives you uncompressed Segwit P2SH: ?
I don't understand what you try to achieve.

What do you mean by "uncompressed segwit P2SH" ? That you pay to the hash of an uncompressed public key ?
crofrihosl (OP)
Jr. Member
*
Offline Offline

Activity: 56
Merit: 3


View Profile
September 27, 2019, 05:55:18 PM
 #3

Hi,

Quote
How to calculate the WIF that gives you uncompressed Segwit P2SH: ?
I don't understand what you try to achieve.

What do you mean by "uncompressed segwit P2SH" ? That you pay to the hash of an uncompressed public key ?

from same private key
compressed address 3QHF8WWyXL5u3vDBHrZYrBpW7evS2x6URK    WIFcompressed :KxULHn3XGW9HaGZLGrkgfxDfLGogn7s9iB31pTdXeQmsRQFV6CE1
uncompressed address 33JWNnBSJWLLoMZkijQb9XLaALZco5RaZq    WIF : [how to calculate this one]

i can't explaining or simplifying more than this

Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
September 27, 2019, 07:23:13 PM
Merited by ABCbits (1), nc50lc (1), darosior (1)
 #4

All the current SegWit scripts are created using only the compressed public key, if you use the uncompressed one your funds will be lost.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
odolvlobo
Legendary
*
Offline Offline

Activity: 4354
Merit: 3273



View Profile
September 28, 2019, 12:39:20 AM
Last edit: September 28, 2019, 01:27:00 AM by odolvlobo
 #5

from same private key
compressed address 3QHF8WWyXL5u3vDBHrZYrBpW7evS2x6URK    WIFcompressed :KxULHn3XGW9HaGZLGrkgfxDfLGogn7s9iB31pTdXeQmsRQFV6CE1
uncompressed address 33JWNnBSJWLLoMZkijQb9XLaALZco5RaZq    WIF : [how to calculate this one]

Compressed vs. uncompressed refers to the format of the public key. The private key is the same, but when converting to WIF, a 0x01 is appended when a compressed public key is intended.

https://en.bitcoin.it/wiki/Wallet_import_format

If KxULHn3XGW9HaGZLGrkgfxDfLGogn7s9iB31pTdXeQmsRQFV6CE1 is the compressed WIF, then the uncompressed WIF is 5J6jtNzDJ79g6j3Lmpya1DWby2KHGCyg8Wv26KGXWKXZGZtrqMu. You can use this page to see them both: https://iancoleman.io/bitcoin-key-compression/

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
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!