Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: RentGPU on September 03, 2017, 02:35:55 AM



Title: Publickey question?
Post by: RentGPU on September 03, 2017, 02:35:55 AM
Is there a way that someone know my public ecdsa key point which starts with 04 if i don't send any tx out of the address before , only recieved ?!


Title: Re: Publickey question?
Post by: cpfreeplz on September 03, 2017, 02:38:20 AM
Can someone know your public key if you received a transaction? Yes. Does this matter? Not usually, unless you're trying to be private or anonymous.


Title: Re: Publickey question?
Post by: ranochigo on September 03, 2017, 02:45:35 AM
Is there a way that someone know my public ecdsa key point which starts with 04 if i don't send any tx out of the address before , only recieved ?!
Depends. If they send your Bitcoins to a public key (P2PK), they will obviously know your public key. I doubt this is even used anymore.

If they send it to an address without any transactions sent from that address, no. They will only know the hash of the public key but not the public key itself.

If you sign a message with it and send it to other people, they will know your public key.


Title: Re: Publickey question?
Post by: RentGPU on September 05, 2017, 11:27:48 PM
Is there a way that someone know my public ecdsa key point which starts with 04 if i don't send any tx out of the address before , only recieved ?!
Depends. If they send your Bitcoins to a public key (P2PK), they will obviously know your public key. I doubt this is even used anymore.

If they send it to an address without any transactions sent from that address, no. They will only know the hash of the public key but not the public key itself.

If you sign a message with it and send it to other people, they will know your public key.
If there is an account i dont own and i want to know the publickey ecdsa key not the hash160 , taking in consideration that this account didn't output money before so i can't know the publickey from a tx before ,sorry for my bad english :) thx
Is there a way to know it's publickey which starts with 04


Title: Re: Publickey question?
Post by: ranochigo on September 06, 2017, 02:01:28 AM
Is there a way that someone know my public ecdsa key point which starts with 04 if i don't send any tx out of the address before , only recieved ?!
Depends. If they send your Bitcoins to a public key (P2PK), they will obviously know your public key. I doubt this is even used anymore.

If they send it to an address without any transactions sent from that address, no. They will only know the hash of the public key but not the public key itself.

If you sign a message with it and send it to other people, they will know your public key.
If there is an account i dont own and i want to know the publickey ecdsa key not the hash160 , taking in consideration that this account didn't output money before so i can't know the publickey from a tx before ,sorry for my bad english :) thx
Is there a way to know it's publickey which starts with 04
Yes, you cannot. You can derive the Hash160 from the address but you cannot derive the public key from the HASH160.

You can only derive it using the corresponding private key, a transaction sent from it or a signed message.


Title: Re: Publickey question?
Post by: HCP on September 06, 2017, 04:02:26 AM
If there is an account i dont own and i want to know the publickey ecdsa key not the hash160 , taking in consideration that this account didn't output money before so i can't know the publickey from a tx before ,sorry for my bad english :) thx
Is there a way to know it's publickey which starts with 04
No. The public address is the result of a some SHA256 and a RIPEMD-160 hashes, along with the addition of some bytes here and there... http://gobittest.appspot.com/Address

SHA256 and RIPEMD-160 are both oneway hashes. You cannot get back to the public key from JUST the public address.


Title: Re: Publickey question?
Post by: Coding Enthusiast on September 06, 2017, 04:16:55 AM
You can only derive it using ... a signed message.

Are you sure you can get Public key from a signed message?
I have never heard of it and I can not find anything about "How" on google.


Title: Re: Publickey question?
Post by: baryonlee on September 06, 2017, 05:23:25 AM
the public key will be showed at verify script. isn't it?


Title: Re: Publickey question?
Post by: amaclin1 on September 06, 2017, 06:01:04 AM
Depends. If they send your Bitcoins to a public key (P2PK), they will obviously know your public key. I doubt this is even used anymore.
I use p2pk outputs nowadays


Title: Re: Publickey question?
Post by: DannyHamilton on September 06, 2017, 08:56:09 AM
You can only derive it using ... a signed message.
Are you sure you can get Public key from a signed message?

Yes.

Here's a (April 2011) discussion on the topic:

https://bitcointalk.org/index.php?topic=6430.0


Title: Re: Publickey question?
Post by: Coding Enthusiast on September 06, 2017, 05:17:56 PM
You can only derive it using ... a signed message.
Are you sure you can get Public key from a signed message?

Yes.

Here's a (April 2011) discussion on the topic:

https://bitcointalk.org/index.php?topic=6430.0

Pretty interesting, thanks.


Title: Re: Publickey question?
Post by: RentGPU on September 06, 2017, 07:44:18 PM
Thx, so now i know why satoshi said it's more secure to use the address only one time , i think this means once we make a transaction output from an address we should move the rest of the btc to a new one because this address had shown it's publickey and lost part of it's security.


Title: Re: Publickey question?
Post by: heitorlinks on September 07, 2017, 01:47:16 AM
Thx, so now i know why satoshi said it's more secure to use the address only one time , i think this means once we make a transaction output from an address we should move the rest of the btc to a new one because this address had shown it's publickey and lost part of it's security.

I do not think it affects security, the idea of ​​moving to a new address comes in as "spare security". ::)



Title: Re: Publickey question?
Post by: aplistir on September 07, 2017, 09:45:51 AM
I do not think it affects security, the idea of ​​moving to a new address comes in as "spare security". ::)

It does affect security a little bit. If ECDSA will ever be cracked (eg. with quantum computer), then re-using addresses will be less secure.
New address will still be safe.