user127628: Since bitcoin uses cryptography algorithms to create private and public keys there is a possibility it could repeat.
Person 1:
L54w...KraG -> bc1...kq4
Person 2:
L3mV...JU8G -> bc1...kq4
So could person 2 single handedly sent bitcoin from bc1...kq4 to a different address. My question is would both of the private keys work to change the funds. If so how will his affect bitcoin as a whole.

user5406: The size of the key space in Bitcoin is just shy of 2256. There are a few different output types with different address schemes, but for most of these, the address space is a lot smaller than the key space. Let's assume you're inquiring about P2WPKH. There are about 2160 unique addresses for P2WPKH outputs, so about 296 keys map to each address.
You are therefore correct that hypothetically two users could each discover a different private key that map to the same address. If that were the case:

There is no registration of addresses or other mitigation for key collisions. Simply, either user could spend funds received to the address.
From a protocol perspective, there would not be a problem at all, as a transaction signed with either key would be valid.
If they both notice in time, the users might get into a bidding war, creating conflicting transactions with higher and higher fees to claim the funds.
If transactions from both users surface, other people might notice and be concerned about the key collision. Most likely this would lead to a loss of confidence in the method the corresponding keys were generated, but some users could lose confidence in Bitcoin instead due to misunderstanding the cause of the situation.

2160 is an extremely large number. As long as key generation uses reasonable entropy sources, it's unlikely that we'll ever see any two addresses collide no matter how long Bitcoin will get used.

127628: <p>Since bitcoin uses cryptography algorithms to create private and public keys there is a possibility it could repeat.</p>
<p>Person 1:
L54w...KraG -&gt; bc1...kq4</p>
<p>Person 2:
L3mV...JU8G -&gt; bc1...kq4</p>
<p>So could person 2 single handedly sent bitcoin from bc1...kq4 to a different address. My question is would both of the private keys work to change the funds. If so how will his affect bitcoin as a whole.</p>
 5406: <p>The size of the key space in Bitcoin is just shy of 2<sup>256</sup>. There are a few different output types with different address schemes, but for most of these, the address space is a lot smaller than the key space. Let's assume you're inquiring about P2WPKH. There are about 2<sup>160</sup> unique addresses for P2WPKH outputs, so about 2<sup>96</sup> keys map to each address.</p>
<p>You are therefore correct that hypothetically two users could each discover a different private key that map to the same address. If that were the case:</p>
<ol>
<li>There is no registration of addresses or other mitigation for key collisions. Simply, either user could spend funds received to the address.</li>
<li>From a protocol perspective, there would not be a problem at all, as a transaction signed with either key would be valid.</li>
<li>If they both notice in time, the users might get into a bidding war, creating conflicting transactions with higher and higher fees to claim the funds.</li>
<li>If transactions from both users surface, other people might notice and be concerned about the key collision. Most likely this would lead to a loss of confidence in the method the corresponding keys were generated, but some users could lose confidence in Bitcoin instead due to misunderstanding the cause of the situation.</li>
</ol>
<p>2<sup>160</sup> is an extremely large number. As long as key generation uses reasonable entropy sources, it's <a href="https://bitcoin.stackexchange.com/a/12740/5406">unlikely that we'll ever see any two addresses collide</a> no matter how long Bitcoin will get used.</p>
