<p>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. </p>

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

CC BY-SA 3.0
2016-06-06T09:21:35.987Z
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
CC BY-SA 3.0
2016-06-04T20:22:23.307Z
2016-06-04T20:22:23.307Z
Susan
<p>Is there some way in which I could get the public key of a Bitcoin user ?</p>

<p>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?</p>

<p>How does <a href="https://slock.it/" rel="nofollow">https://slock.it/</a> guys does it ? From where do they get the public key from ?</p>

<p><a href="https://www.youtube.com/watch?v=-Ht23KXic1k" rel="nofollow">https://www.youtube.com/watch?v=-Ht23KXic1k</a></p>

CC BY-SA 3.0
2016-06-06T09:55:38.367Z
What direction did the transaction go? There's a difference whether the address' balance was spent, or it only received bitcoins.
Murch
<transactions><address><public-key>
How to get the Public Keys of a bitcoin User
jgm
# How to get the Public Keys of a bitcoin User

(Asked by: username_0 on 2016-06-04)

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>

**Tags:** transactions, address, public-key

> **Comments:**
> **username_1**: What direction did the transaction go? There's a difference whether the address' balance was spent, or it only received bitcoins.  

---

## 1 answers

### Answer by username_2 on 2016-06-04. Score: 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.

> **Comments:**
> **username_3**: 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.  

---

