How can I get the public key?

0

I am wondering if the public keys are broadcast to the network. I know that we are using addresses derived from the public key, but could we get the public key itself? Does this depend on which wallet the user uses?

Etherkimist

Posted 2016-10-11T21:56:12.003

Reputation: 105

It depends on whether you're using Pay to Public Key or Pay to Public Key Hash. Most people use P2PKH.Nick ODell 2016-10-11T23:42:24.247

Answers

3

The public key becomes known once you try to spend the output as part of the transaction spending that output. Before then only the address is known. This is one reason you should not reuse the same address twice, although a more important reason to not do that is your and others' privacy

Jannes

Posted 2016-10-11T21:56:12.003

Reputation: 5 823