How do you check the validity of a signature while only having the hash of the public key

0

So far as I understand it, a Bitcoin transaction is signed with a private key and the rest of the network can then use the public key to verify that it is indeed signed by the right private key. However, as public keys are hashed, how do I use them to verify the private key?

no nein

Posted 2017-08-21T19:28:41.027

Reputation: 107

Answers

4

When an output is spent, the corresponding public key is disclosed and used in the verification.

Meni Rosenfeld

Posted 2017-08-21T19:28:41.027

Reputation: 18 542

Ah okay, so whenever you send something you show the public keys. I assume that is only why you should not use the same addresses multiple times?no nein 2017-08-21T20:21:41.767

@nonein: That's one of the reasons, yes. Specifically, reusing addresses opens a vulnerability to quantum computers.Meni Rosenfeld 2017-08-21T21:14:07.477