2
I have the following btc private key that I generated from another application:
5KCPzu4tEAnFqwLrXUbW3GKMDSnUYY8CMie2HMRuHouSvrFhXA9
That application gives me the following segwit address:
bc1qluk574lw9t536u72n0z2ya0ksx3s0kg0evkrme
But when I goto https://segwitaddress.org and scroll down and enter in my private key at Enter a WIF private key to generate its corresponding segwit address. I get a totally different address:
37wArHq69dxRwLkHt6MY8PpmbB6qjErrbK
So do these 2 public keys actually have the same private key? How do I verify if my private key does indeed output the same public keys? I couldn't find any program to do this verification.
So any btc private key can generate 3 different types of addresses: 1xxx (legacy), 3xxxx (P2SH), and bc1 (Segwit)? My question now is how can I extract all 3 of these addresses from a single private key? My main goal is to see if the bc1 address matches my private key as I can't figure out any way of verifying if they match. – Patoshi パトシ – 2018-02-03T22:42:47.593
Yes, any private key can be used to generate those 3 types of addresses. In theory, it could actually be used to generate an infinite amount of P2SH addresses as the scripts can include basically any arbitrary data in addition to the public key. The only to check the addresses is to find a software that will generate each one for you. – Andrew Chow – 2018-02-03T22:46:12.713
Which software would do this? – Patoshi パトシ – 2018-02-05T20:20:14.317