<p>In your scenario, Carmen can simply see and spend the money as if it was theirs. </p>

<p>The network does not have any way of distinguishing this event. </p>

CC BY-SA 4.0
2018-10-12T12:57:56.687Z
2018-10-12T12:57:56.687Z
Claris
<p>Spending a P2PKH script has the following conditions:</p>

<ul>
<li>The public key must hash to the expected hash</li>
<li>The signature must be valid when verified with that public key.</li>
</ul>

<p>So yes, Carmen would see extra balance and would be able to spend it.</p>

<p><em>However, that's really impractical</em></p>

CC BY-SA 4.0
2018-10-12T13:00:35.267Z
2018-10-12T13:00:35.267Z
MCCCS
<p>What if two public keys have the same hash? Although the chance is very very small, I am still interested in what would happen.</p>

<p>Suppose that Alice makes a transaction to Bob using Pay To Public Key Hash (P2PKH) style signature script.</p>

<p>But Carmen has another public key, and the hash of Carmen's public key and Bob's are the same.</p>

<p>When Carmen turns on the Bitcoin wallet software, is there any extra balance?</p>

<p>Can Carmen spend the balance?</p>

<public-key>
What if two public keys have the same hash？
Bill
# What if two public keys have the same hash？

(Asked by: username_0 on 2018-10-12)

What if two public keys have the same hash? Although the chance is very very small, I am still interested in what would happen.

Suppose that Alice makes a transaction to Bob using Pay To Public Key Hash (P2PKH) style signature script.

But Carmen has another public key, and the hash of Carmen's public key and Bob's are the same.

When Carmen turns on the Bitcoin wallet software, is there any extra balance?

Can Carmen spend the balance?

**Tags:** public-key


---

## 2 answers

### Answer by username_1 on 2018-10-12. Score: 2 | Accepted answer

In your scenario, Carmen can simply see and spend the money as if it was theirs.

The network does not have any way of distinguishing this event.


---

### Answer by username_2 on 2018-10-12. Score: 1

Spending a P2PKH script has the following conditions:

* The public key must hash to the expected hash
* The signature must be valid when verified with that public key.

So yes, Carmen would see extra balance and would be able to spend it.

*However, that's really impractical*


---

