Actually 1 private key creates 1 public key (point) and that point can be represented in 3 different ways: compressed, uncompressed and hybrid. if you has each representation you will get a different hash hence a different address and all are valid but some are non-standard.
If 1 private key can create only 1 public key then how is @coolcryptovator able to sign the message with the nested segwit address and also able to verify it with the derived legacy address ?
I have tried to sign a message from Nested SegWit address starting with '3', and there are fund and transaction history as well. But the derived Legacy address from the same private key was with ZERO balance, and there was no transaction history. Means you can only spend unspent transaction from your address and there is no chance of losing your funds from other address. How can you spend if you don't have any input in the address?
Could you please let us know if the nested segwit address and the derived legacy address are both compressed or is either of them uncompressed?
you areoverthinking it. different addresses are no more than different representation of pubkey scripts. as long as your wallet application is capable of performing hash on your public key and knows how to spend certain scripts (eg. P2WPKH script) you can spend from any of the "addresses" created from your private key.
Let's assume the private key has derived two different addresses (different representation of pubkey scripts as you say).
One has the Unspent outputs while the other doesn't. How can we use the second address to spend the funds from the first address ?
If it's possible I wonder how the block explorer will display the inputs in the given transaction.
~snip
Thanks for this great info
If 1 private key can create only 1 public key then how is @coolcryptovator able to sign the message with the nested segwit address and also able to verify it with the derived legacy address ?
Because the same public key can generate a legacy address, a nested segwit address, and a native segwit address. And he isn't signing a message with an address - he is signing it with the private key.
That's exactly where I am confused. Can someone please explain what's the difference between the below two statements ?
Because the same public key can generate a legacy address, a nested segwit address, and a native segwit address.
Actually 1 private key creates 1 public key (point) and that point can be represented in 3 different ways: compressed, uncompressed and hybrid.