We've been watching the shake-up about possible vulnerabilities in commonly used public-key cryptography schemes. Since cryptography is at the heart of Holochain's addresses, signatures, and data structures, its integrity is vital to our whole architecture. We will continue to track progress closely to see if loose warnings transform into concrete direction.

What's the buzz about? The NSA published an advisory to its vendors and providers of National Security Systems pushing to accelerate preparations for transitioning to post-quantum cryptography. The implication people are deriving from this, is that current cryptography is already vulnerable, or may soon be vulnerable to attack — and the algorithms that current blockchains and web certificates use are not in their approved list. No deadline was given.

To be clear about the nature of the threat:

  1. There is no evidence that a quantum computer currently exists that can crack current cryptography. Known research machines would need about 1000x their current capacity. And although it is likely coming, each one costs billions of dollars to build.
  2. If you build a multi-billion dollar quantum computer, cracking a crypto key would likely cost additional tens to hundreds of thousands for each one you want to crack.
  3. As with all computing, assuming we reach those targets at all, it will someday become cheaper.

Of note, once you've cracked a crypto key, there are two main paths of concern: secrecy and control. Did you crack the key to read secrets (e.g. Top Secret government files), or was the key targeted for use to encrypt/sign new things (e.g. signing new cryptocurrency transactions).

Centralized Infrastructure (e.g. websites, databases, servers)

This type of infrastructure provides a "honeypot" — a big prize to win for breaking its cryptography. It is also typically what is used by governments and is most vulnerable to a single cracked key. A single key could take over a website certificate to be able to masquerade as the real web site, or gain full (read/write) access to a database, or get admin privileges for a server and everything that runs on it. This kind of infrastructure is the most likely to be targeted by expensive quantum computing.

Decentralized Monolithic Infrastructure with Centralized State (e.g. Blockchains)

Blockchains break this honeypot into smaller pieces where each user has their own keys they use to make transactions or encrypt things they put on chain. However, there are still some quite large honeypots — like the wallets of crypto-exchanges which hold funds for tens or hundreds of thousands of users, or Satoshi's original wallets which hold billions of dollars of Bitcoin. Some targets could be worth investing quantum computing in, but the real problem here is with threat #3. If it becomes affordable, monolithic consensus itself can be attacked. Also, people write their secrets to public, immutable blockchains which will someday get cheaper to crack.

P2P Diverse Infrastructure with Local State Coordination (e.g. Holochain)

In Holochain, every application is its own encrypted network, only accessible to people who have been approved to join that application — no single chain. Connections are typically made directly peer-to-peer, so there are no miners or stakers as middlemen. Users typically have a different key for each application. There is no monolithic permanent record for people to try to control or steal secrets from. So the benefits of compromising a single key are negligible. Would you spend $100k to post a chat in a private group?

We've structured the cryptography code in Holochain to be modular, with the understanding that we will likely need to replace it someday. However, currently we don't believe the risks merit increasing the storage size and compute overhead to switch to a post-quantum cryptographic algorithm.

When that time comes, we will need to replace the cryptographic functions which all live in the lair key-store, as well as update our core data structures to use the larger keys. App developers won't likely have to make major changes, but they will have to publish a version update with their data structures updated to the larger key sizes.

We'll come back and share more as threat timelines get clarified (and rumors get reality-checked).