7

Is there some way in which I could get the public key of a Bitcoin user ?

Lets say I have transaction with another Bitcoin user. Is there some means by which I can retrieve the public key of the Bitcoin address they used in our transaction?

How does https://slock.it/ guys does it ? From where do they get the public key from ?

https://www.youtube.com/watch?v=-Ht23KXic1k

1
  • What direction did the transaction go? There's a difference whether the address' balance was spent, or it only received bitcoins.
    – Murch
    Jun 6, 2016 at 9:55

1 Answer 1

9

You cannot compute the public key of an address (that is not yours), because the address is computed from the hash of the public key.

You can find the public key of your own address with the Bitcoin-QT debug window or with a validateaddress RPC call.

1
  • Sounds like OP is asking about getting the public key AFTER a transaction has happened. Then it IS possible to get the public key from the transaction, or multiple public keys depending on how many inputs were used.
    – Jannes
    Jun 6, 2016 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.