<p>This is mostly not correct.</p>

<p>First of all, the address is a hash of the public key only.</p>

<p>Also, if one has a private key, the corresponding public key can be computed directly.  So the most straightforward brute-force attack looks something like this:</p>

<ol>
<li><p>Pick a number to use as a private key (an integer between 0 and 2^256, roughly)</p></li>
<li><p>Compute the corresponding public key</p></li>
<li><p>Compute the RIPEMD-160 hash of the public key</p></li>
<li><p>See if it matches the target address (or any other address containing coins)</p></li>
<li><p>Repeat</p></li>
</ol>

<p>Knowing the public key in advance isn't relevant for this attack.  In fact, since the private key is 256 bits and the hash is only 160 bits, it is overwhelmingly likely that if the attack succeeds, it will be by finding a private key which produces a public key that is different from the original public key but has the same hash.  (Of course, it is overwhelmingly unlikely that this will actually succeed before the end of the universe.)</p>

<p>The whole point of public key cryptography is that it remains secure even when the public key is made public, and ECDSA is believed to be a secure algorithm in this respect.  There are no known attacks in which knowing the public key makes it feasible to recover the private key or otherwise produce valid signatures.  So it's not accurate to say that addresses with an exposed public key are "at risk" of having the coins stolen.  This is not a real risk, as far as is known.</p>

<p>There are theoretical attacks based on quantum computing that might make it much easier to determine a private key from the corresponding public key.  See <a href="https://bitcoin.stackexchange.com/questions/6062/what-effects-would-a-scalable-quantum-computer-have-on-bitcoin">What effects would a scalable Quantum Computer have on Bitcoin?</a>  If those attacks (and the requisite quantum computing technology) should eventually become possible in practice, then there would be a real increased risk to addresses with an exposed public key.  That is not the case today and as far as I know, it is not likely anytime soon.</p>

<p>I don't know of any compiled list of funded addresses with exposed public keys.</p>

<p>See also <a href="https://bitcoin.stackexchange.com/questions/42320/is-that-safe-to-expose-public-key-to-the-mainnet/42330">Is that safe to expose public key to the mainnet</a></p>

CC BY-SA 3.0
2016-09-20T12:09:58.663Z
2016-09-20T12:09:58.663Z
2017-04-13T12:47:33.583Z
Nate Eldredge
<p>I just recently learned that your public key + private key is hashed together to form your bitcoin address. Is this true? </p>

<p>Can someone please confirm if the following is true:</p>

<ul>
<li>If a bitcoin address never sent funds out, you would need to guess the public + private key of the bitcoin address.</li>
<li>If a bitcoin address had an outgoing transaction, the public key is now out in the open and you would only need to guess the private key.</li>
<li>Single address Paper wallets that had an out going transaction has a risk of its funds being stolen since the public key is now in the open.</li>
<li>Is there a site that lists all the bitcoin addresses with their public key exposed that also still has large sums of bitcoin in it? </li>
</ul>

<private-key><public-key><paper-wallet><funds>
Is it true that sending from an address exposes the public key of a bitcoin address?
Patoshi パトシ
# Is it true that sending from an address exposes the public key of a bitcoin address?

(Asked by: username_0 on 2016-09-20)

I just recently learned that your public key + private key is hashed together to form your bitcoin address. Is this true?

Can someone please confirm if the following is true:

* If a bitcoin address never sent funds out, you would need to guess the public + private key of the bitcoin address.
* If a bitcoin address had an outgoing transaction, the public key is now out in the open and you would only need to guess the private key.
* Single address Paper wallets that had an out going transaction has a risk of its funds being stolen since the public key is now in the open.
* Is there a site that lists all the bitcoin addresses with their public key exposed that also still has large sums of bitcoin in it?

**Tags:** private-key, public-key, paper-wallet, funds


---

## 1 answers

### Answer by username_1 on 2016-09-20. Score: 4 | Accepted answer

This is mostly not correct.

First of all, the address is a hash of the public key only.

Also, if one has a private key, the corresponding public key can be computed directly. So the most straightforward brute-force attack looks something like this:

1. Pick a number to use as a private key (an integer between 0 and 2^256, roughly)
2. Compute the corresponding public key
3. Compute the RIPEMD-160 hash of the public key
4. See if it matches the target address (or any other address containing coins)
5. Repeat

Knowing the public key in advance isn't relevant for this attack. In fact, since the private key is 256 bits and the hash is only 160 bits, it is overwhelmingly likely that if the attack succeeds, it will be by finding a private key which produces a public key that is different from the original public key but has the same hash. (Of course, it is overwhelmingly unlikely that this will actually succeed before the end of the universe.)

The whole point of public key cryptography is that it remains secure even when the public key is made public, and ECDSA is believed to be a secure algorithm in this respect. There are no known attacks in which knowing the public key makes it feasible to recover the private key or otherwise produce valid signatures. So it's not accurate to say that addresses with an exposed public key are "at risk" of having the coins stolen. This is not a real risk, as far as is known.

There are theoretical attacks based on quantum computing that might make it much easier to determine a private key from the corresponding public key. See [What effects would a scalable Quantum Computer have on Bitcoin?](https://bitcoin.stackexchange.com/questions/6062/what-effects-would-a-scalable-quantum-computer-have-on-bitcoin) If those attacks (and the requisite quantum computing technology) should eventually become possible in practice, then there would be a real increased risk to addresses with an exposed public key. That is not the case today and as far as I know, it is not likely anytime soon.

I don't know of any compiled list of funded addresses with exposed public keys.

See also [Is that safe to expose public key to the mainnet](https://bitcoin.stackexchange.com/questions/42320/is-that-safe-to-expose-public-key-to-the-mainnet/42330)


---

