<p>There are several layers to bitcoin's cryptography:</p>

<ol>
<li><p>ECDSA. Elliptical curves, specifically the problem of solving discrete logs is well-known to be a difficult problem. The particular curve that bitcoin uses is secp256k1. If that particular curve is cracked, there would probably be some sort of patch to change the curve in bitcoin, which if the other two things aren't cracked, should have a reasonable chance of success as people can migrate coins encrypted with the new curve. If Elliptical Curves in general are cracked, then the other two things securing bitcoins are still there. Also, many websites would be compromised right away, including banking sites and credit card verifications as they rely on this encryption as well.</p></li>
<li><p>SHA256. If SHA256 were cracked, that is, if you were able to generate a source for any particular SHA256 hash, this would probably not mean much by itself. There are other algorithms that can replace this.</p></li>
<li><p>RIPEMD160. Again, if this were cracked, it's useless without the ECDSA cracking. There are other algorithms that can replace this.</p></li>
</ol>

<p>If any one of these things is cracked, there would most likely be a hard fork to move everything over to a different hash. It wouldn't be pretty, but it would be possible.</p>

CC BY-SA 3.0
2015-11-08T05:20:53.727Z
This isn't really right. ECDSA (especially secp256k1) is not that popular, the majority of banking related cryptography is likely going to be the older RSA, beyond that we actually have no assurance that the problems are even actually hard to begin with. If SHA256 is compromised there's far more reaching impacts in Bitcoin, being able to make a second preimage for example would be devastating to Bitcoin (and not related to mining, it's used for TXID and merkle trees as well).
Claris
CC BY-SA 3.0
2015-11-07T00:35:43.720Z
2015-11-07T00:35:43.720Z
Jimmy Song
<p>A few people I know compare bitcoin and gold regarding currencies with integrity; Martin Armstrong on Zero Hedge compared both in a recent post.  One advantage I currently see that bitcoin has over gold is the cost to verify is much lower; it costs more to make sure that I've received legitimate gold than it does to verify that I've received a legitimate bitcoin.  But this depends on the cryptography always being legitimate - what if in the future someone cracks it?</p>

<p>What would happen if someone in the future is able to <em>crack</em> bitcoin's cryptography?  Does the system adapt at this point (and can it?)?</p>

CC BY-SA 3.0
2015-11-07T15:59:40.970Z
possible duplicate of [What will happen when SHA 256 needs to be replaced?](http://bitcoin.stackexchange.com/questions/1380/what-will-happen-when-sha-256-needs-to-be-replaced)
Murch
<cryptography>
Bitcoin's Cryptographic Integrity
user541852587
# Bitcoin's Cryptographic Integrity

(Asked by: username_0 on 2015-11-06)

A few people I know compare bitcoin and gold regarding currencies with integrity; Martin Armstrong on Zero Hedge compared both in a recent post. One advantage I currently see that bitcoin has over gold is the cost to verify is much lower; it costs more to make sure that I've received legitimate gold than it does to verify that I've received a legitimate bitcoin. But this depends on the cryptography always being legitimate - what if in the future someone cracks it?

What would happen if someone in the future is able to *crack* bitcoin's cryptography? Does the system adapt at this point (and can it?)?

**Tags:** cryptography

> **Comments:**
> **username_1**: possible duplicate of [What will happen when SHA 256 needs to be replaced?](http://bitcoin.stackexchange.com/questions/1380/what-will-happen-when-sha-256-needs-to-be-replaced)  

---

## 1 answers

### Answer by username_2 on 2015-11-07. Score: 1 | Accepted answer

There are several layers to bitcoin's cryptography:

1. ECDSA. Elliptical curves, specifically the problem of solving discrete logs is well-known to be a difficult problem. The particular curve that bitcoin uses is secp256k1. If that particular curve is cracked, there would probably be some sort of patch to change the curve in bitcoin, which if the other two things aren't cracked, should have a reasonable chance of success as people can migrate coins encrypted with the new curve. If Elliptical Curves in general are cracked, then the other two things securing bitcoins are still there. Also, many websites would be compromised right away, including banking sites and credit card verifications as they rely on this encryption as well.
2. SHA256. If SHA256 were cracked, that is, if you were able to generate a source for any particular SHA256 hash, this would probably not mean much by itself. There are other algorithms that can replace this.
3. RIPEMD160. Again, if this were cracked, it's useless without the ECDSA cracking. There are other algorithms that can replace this.

If any one of these things is cracked, there would most likely be a hard fork to move everything over to a different hash. It wouldn't be pretty, but it would be possible.

> **Comments:**
> **username_3**: This isn't really right. ECDSA (especially secp256k1) is not that popular, the majority of banking related cryptography is likely going to be the older RSA, beyond that we actually have no assurance that the problems are even actually hard to begin with. If SHA256 is compromised there's far more reaching impacts in Bitcoin, being able to make a second preimage for example would be devastating to Bitcoin (and not related to mining, it's used for TXID and merkle trees as well).  

---

