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?
1 Answer
When an output is spent, the corresponding public key is disclosed and used in the verification.
-
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 neinCommented Aug 21, 2017 at 20:21
-
@nonein: That's one of the reasons, yes. Specifically, reusing addresses opens a vulnerability to quantum computers. Commented Aug 21, 2017 at 21:14