Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
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.
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.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments