The Bitcoin Security Crisis in the AI Era: If Cryptography Is Compromised, Can Bitcoin Survive?

CN
14 minutes ago

Author: nader.deso (@nadertheory)

Compiled by: TechFlow

Considering that the cryptocurrency field may soon announce major news, many people have asked me what I think about Bitcoin. I haven't seen anyone else make strong judgments, so I'll express my thoughts fully here, including how secure it currently is and what I am doing. These are all written by me, with no use of AI.

TL;DR: I haven't taken much action. Personally, more than 50% of my wealth is in Bitcoin, and I believe it's generally safe to hold. However, I will also mention what scenarios would change my view so that everyone can be prepared in advance.

First, let's clarify that many people don't know Bitcoin is based on two mathematical assumptions. One involves elliptic curves, which is ECDSA, relying on the "discrete logarithm" assumption. The other involves hashing, specifically the SHA-256 hashing algorithm. The two do different things. ECDSA is used to sign transactions, proving that the transaction indeed came from you. SHA-256 is used for mining blocks and issuing new Bitcoins.

Overall, even if ECDSA is compromised, Bitcoin can likely withstand that; it depends primarily on how exactly it is compromised. If SHA-256 is compromised, Bitcoin would be finished. Fortunately, breaking SHA-256 is much harder, approaching the level of P = NP. If it really were compromised, we would have to re-examine the nature of reality. As for ECDSA, it was anticipated that quantum computing would reach a stage where it could break it, and the Bitcoin community has been actively preparing for the transition. I will elaborate on that below.

First, let’s discuss ECDSA and its risks. Even if ECDSA is compromised, switching to another signing method isn’t particularly difficult, and we are already working on this. Alternative signing schemes are already available, with engineering and coordination remaining to be resolved. When you hear someone say that quantum computers will break Bitcoin, they are specifically referring to breaking ECDSA. Quantum computers would also make it easier to solve SHA-256, but the improvement would not be sufficient to break it. Miners might have to switch to quantum miners, which sounds strange, but it may not be a big issue.

If ECDSA were compromised tomorrow, we wouldn’t be prepared for that level yet. However, we have done scenario simulations. If it is compromised in a "slow" manner, we should be able to handle it, as that is the most likely scenario. What do I mean by "slow"? The details are important here. Today, non-quantum algorithms require more computational steps to crack your ECDSA private key than there are atoms in the universe. If tomorrow, AI tells us that a certain algorithm could do this in a thousand years using all computing power on Earth, that would represent a monumental improvement, but we would still have ample time to migrate to a more secure scheme. Even if the fastest algorithm could crack the key in 20 minutes under the best conditions, we might still manage to hold out for a while.

Why? Bitcoin has a unique feature. Your key is only exposed to attackers after the transaction is broadcast and before it's mined into a block, meaning that once it is in a block, it is protected by SHA-256. In other words, if a tool emerges that takes 20 minutes to crack a key, technically, today’s Bitcoin could still migrate everyone away. You only need to transfer money from an insecure ECDSA wallet to a wallet that can handle future risks just once. As long as the transaction can be made before an attacker has the ability to rewrite it into a block, there should be no problem. Because each Bitcoin transaction uses a different key, in this scenario, even if you temporarily do not exit ECDSA, you could continue to use it normally.

What about the worst-case scenario? If there were a way to instantly crack a key, the situation wouldn’t be as bad as it may seem. We would need to make a minor update to Bitcoin, splitting the spending process into two steps. First, put your key and the transaction hash on the chain, provided that the hash remains secure, and wait for it to be mined into a block. The second step would be to put the actual key on the chain, proving that you truly own it. Compared to a scenario requiring more than 20 minutes to crack, this would be more cumbersome, because the network would need to be upgraded first to support this "commit-reveal" spending method before safe transactions could take place. This is relatively considered a minor update, and the community has been simulating this, allowing for the entire migration to be completed without financial loss.

By the way, this is also one of the reasons the community has been slow to act on quantum issues. A quantum computer that cracks a key is impressive, but it isn't enough; it must bring the time to crack each key down to around 10 to 20 minutes before the network needs upgrading. Even if it could flawlessly crack ECDSA instantly, the network would only need a relatively small upgrade to safely migrate. We certainly shouldn’t be complacent. However, once you understand the actual threats ECDSA faces, you might recognize that taking more time to ensure the right migration target is perhaps worthwhile so as to avoid repeating this in five years.

And what about AI? What are the chances AI finds a method to crack ECDSA within 10 minutes? Unfortunately, the potential is much greater that someone accomplishes this before quantum computing does. However, as long as SHA-256 remains secure, Bitcoin can still cope, which I will discuss later. It will require us to swiftly upgrade to the commit-reveal spending method, after which we can safely migrate. We might need to work frantically for a month to complete the network upgrade and then return to normal. Of course, there are some exceptions, like the coins belonging to Satoshi Nakamoto that I will mention later.

Additionally, the rumors I've heard indicate that we will see what is referred to as a "galactic-level" algorithm. This suggests that to crack a key might require the total computational power on Earth to run for a thousand years. It remains frightening because perhaps a faster version could emerge next month. However, once such an algorithm is publicly exposed, it would force the Bitcoin community to unite quickly to advance the commit-reveal method or other secure solutions. In many ways, this is a good thing.

Now, having discussed ECDSA, what about SHA-256? If you've been paying attention, you'll notice I've mentioned "as long as the hash remains secure" several times. Here, there is both good news and bad news. The good news is that hashes have a direct relationship with P = NP to some degree. If you can break hash functions in a general sense, it probably also means you could solve a famous NP problem called 3-SAT, thus breaking all other NP-hard problems simultaneously. Note that this correlation is likely, but not guaranteed. Strictly speaking, P = NP implies that hashes are easy to solve, but the reverse does not hold. However, in my view, the two are close enough. If you can break SHA-256, you might be able to resolve P = NP within a week.

This means that if hash functions in a general sense are compromised, under the current structure of the internet, there will be essentially no secure communication. By that point, you could say that our problems are infinitely larger than just "Bitcoin is insecure and may not even exist." Well, perhaps your problems are bigger. To be honest, I would still mainly be saddened for Bitcoin. Thus, the good news is that a full compromise of hashes would almost fundamentally alter our understanding of reality. We expect that the more likely scenario will be akin to the Riemann Hypothesis, where AI essentially proves something we intuitively believed to be true all along. To clarify, this is my expectation and a key reason for my continued holding of Bitcoin. I truly do not believe we will ultimately enter a world where P = NP.

What’s the bad news? If SHA-256 is broken, Bitcoin is essentially finished. It's important to be precise here. Even if it happens only with the mining-dependent SHA-256 algorithm, Bitcoin will face difficulties without needing P = NP to bring down the entire hash field. Specifically, it has to be a type of cracking that makes pre-image attacks cheap, should you wish to look that up. Hence, the threshold is relatively low. Of course, SHA-256 itself is quite a tough algorithm to crack, also relatively close to 3-SAT. It is well known that breaking 3-SAT requires capability on the level of P = NP.

How would Bitcoin end up failing? First, remember that the Bitcoin network relies on mining for security. You may have heard explanations of computers solving "puzzles" to mine blocks or Bitcoin. SHA-256 is that puzzle. If there is a sufficiently severe specific flaw in this puzzle, the Bitcoin network's security will be immediately threatened, even if the hash overall is still intact, meaning in a broader sense, that P ≠ NP. The reason is that at that point, anyone could produce infinite nonces with a hash of zero, where a zero hash equates to solving the highest difficulty puzzle supported by the Bitcoin network.

At that time, mining would no longer be viable, and we would need to switch to a secure hash algorithm, assuming such an algorithm still exists. Unfortunately, this migration would be much more troublesome. The industry has invested billions, perhaps hundreds of billions or even thousands of billions, in buying ASICs that solve SHA-256 using old methods. These capital investments would instantly lose their value. Starting anew with a new proof-of-work function would also lead to a period where the network would be vulnerable to relatively small attackers. Simply put, whether SHA-256 is breached alone without P = NP or whether it falls due to P = NP would both be disastrous.

Considering the above situations, if feasible, it makes sense for the Bitcoin community to put all its chips on SHA-256 and remove every cryptographic assumption from the protocol. Survive by SHA-256, die by SHA-256. This is exactly what is happening now. Specifically, many ECDSA alternatives are still competing, with a leading protocol called SHRINCS. Its signatures are more compact and use SHA-256 as the sole cryptographic assumption. By the way, I like this scheme. It has become more popular than the GPK scheme precisely because it allows us to unify Bitcoin’s security to a cryptographic algorithm already used in mining: SHA-256.

On one hand, this is daunting because we cannot be 100% sure of SHA-256's security. On the other hand, we can at least put our chips on the most reliable thing. Moreover, if AI can formally prove that SHA-256 is indeed secure, which is to prove what we have intuitively believed all along, Bitcoin as a protocol could finally be said to be “complete,” becoming the ultimate store of value we always hoped it would be, difficult to shake.

What I find interesting is that as long as P ≠ NP, the ultimate digital store of value could exist. The scarcity it guarantees could surpass any physical or other forms of scarcity. If SHA-256 withstands all this, that ultimate store of value will almost certainly be Bitcoin. If SHA-256 is compromised, but another hash function is proven secure, then another proof-of-work cryptocurrency could potentially replace Bitcoin. This process will be quite intriguing; perhaps I will launch one myself to compete, or perhaps I have already got a team working on it!

To summarize:

  • If ECDSA is secure under classical computation, and SHA-256 is also secure, Bitcoin is fine. Upgrade ECDSA to SHRINCS or another alternative before quantum computing arrives, and then push to the moon.
  • If ECDSA is compromised but cracking a key takes over 20 minutes, such as encountering a galactic-level algorithm, the network doesn't need to upgrade immediately but should move away from ECDSA as soon as possible for safety. It's just a matter of time before the next scenario appears.
  • If an algorithm capable of breaking ECDSA in under 20 minutes emerges, a small commitment-reveal upgrade is required first to safely spend money. Then, hold out with it until we exit ECDSA.
  • If SHA-256 is compromised but P ≠ NP, the market will be flooded with blood. Bitcoin's proof-of-work would fail, but other proofs-of-work might still exist. The ultimate digital store of value would still exist, just likely not as Bitcoin.
  • If P = NP, but only a galactic-level algorithm is discovered, then it may just be a matter of time before the next scenario arises.
  • If P = NP, and there’s a non-galactic-level algorithm, reality would be shattered. The encryption we are familiar with on the internet would no longer be viable, and digital value storage would become unfeasible. It would be time to hide in a bunker!

If you have been keeping an eye on Bitcoin, you also know there is one annoying topic to discuss: Satoshi's coins. Unfortunately, at the start of Bitcoin's creation, Satoshi mined one million Bitcoins and exposed the original public key in the process. This means that as long as someone can crack ECDSA, no matter how slowly, they can steal this batch of Bitcoins. Initially, the community had disagreements on how to handle these coins, and there may still be disagreements today; I haven't closely followed it. However, in my view, these coins are likely to be destroyed. The people funding Bitcoin's development hold many Bitcoins, and miners do as well, and their interests are highly aligned with destroying this batch of coins. This matter may seem like it will prompt a vocal minority to complain for clicks, but ultimately it will be resolved quietly and rationally.

That said, even if the matter isn’t resolved properly, even if these one million BTC are stolen, it shouldn't be too significant in the long term. In the short term, there may likely be bloodshed and a sell-off, but the market can absorb it. If Bitcoin can ultimately earn a formal security proof for its algorithm from AI and become an undeniably secure ultimate store of value, then this cost isn't too great.

By the way, if you want to find a predictive market to gauge whether anyone has found a method to crack ECDSA or discovered a pre-image vulnerability in SHA-256, just look at Bitcoin's price itself or the coins belonging to Satoshi. As soon as either of these scenarios occurs, anyone can easily anonymously go long with a perpetual contract worth billions in one of the world’s most liquid markets. This signal actually has no predictive value because by the time you see it, the coins you hold are already unsafe. But at least, by then you'll know!

What do I think will happen next? I personally am not very concerned about ECDSA being compromised, whether by AI or other means. I think the first algorithm discovered will either be galactic-level or will take over 20 minutes to crack a key, or possibly both. The result is that the Bitcoin community will be driven to adopt SHRINCS or other alternatives sooner, which is overall a good thing. I haven’t yet mentioned a thing that might sound a bit humorous and slightly tragic for extreme advocates of quantum computing. If everything a quantum computer can do isn't too hard for a classical computer to accomplish, this concept is known as BQP = P. Its impact on Bitcoin wouldn’t extend beyond the layer of ECDSA. However, I intuitively believe that if AI truly breaks ECDSA, the probability of also proving BQP = P is rather high.

I also don’t lose sleep over non-galactic versions of P = NP; it is primarily based on my intuition and my extensive study of complexity theory back in college. What I mean is that I don't believe P = NP and consider it most likely that AI, like with the Riemann Hypothesis, will make us more certain about something we already believed: P ≠ NP. What truly keeps me awake at night is the possibility of SHA-256 being subject to some specific compromise while P still ≠ NP. If Bitcoin falls, I believe it is most likely due to SHA-256 being compromised individually. As for why it is secure, I have no compelling reason beyond my intuition. I haven't studied it in great depth, but solving it seems quite close to solving 3-SAT. 3-SAT is NP-complete, falling under the most difficult category.

My explanation to myself is that if SHA-256 is broken while P ≠ NP and there are other secure hash functions, digital value storage would still hold. As a hedge, I would launch a Bitcoin alternative myself. I have experience launching DeSo, which is a proof-of-work blockchain that is still running normally and hasn't been hacked so far, let's hope I’m not speaking too soon. Conversely, if we survive past this, with SHA-256 intact, Bitcoin will be "complete." At that point, there will truly be nothing else that has the same level of scarcity. Fiat currencies are clearly a scam, gold can be produced through alchemy or mined from asteroids, land can be confiscated, etc.

If we can unify Bitcoin under SHA-256 and formally verify SHA-256's security, then it would be an excellent world for Bitcoin as a store of value. I also believe this is the world we are most likely to enter in the coming years. Given the advances in AI, it may well arrive faster than we think.

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到[email protected],本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink