As post-quantum threats redefine digital security, Midnight is built to withstand the quantum era.
On December 2, the US National Security Agency advised organizations managing national security infrastructure to "immediately accelerate the transition to post-quantum cryptography" (NSA press release). While this urgent guidance underscores a shift that many platforms are just beginning to navigate, Midnight's architecture was designed with post-quantum readiness at its core. With a hash-based foundation, active protocol updates, and cryptographic agility, Midnight is designed to ensure your privacy and assets remain secure today and long into the future.
What the NSA said
The NSA statement focuses on three main takeaways:
First, the threat extends beyond future quantum supercomputers. Emerging advancements in advanced AI models have already uncovered new vulnerabilities in traditional cryptographic systems in use today. These developments accelerate the need for modern security measures.
Second, data collection is happening now. Adversaries can gather encrypted digital traffic today to decrypt it later once quantum tools become available, using a tactic often called "harvest now, decrypt later." As a result, sensitive data secured under older standards should be treated as potentially exposed over the long term.
Third, adaptability is key. The NSA recommends reviewing system dependencies and prioritizing "cryptographic agility" or building platforms so underlying security algorithms can be smoothly updated without disrupting live services.
While the guidance targets national security infrastructure, the core lesson applies universally. Any network designed to protect privacy and assets over long horizons must be built to withstand future technological shifts.
Where cryptography stands today
Much of the public-key cryptography securing web services and blockchains relies on mathematical problems like elliptic curves. While effective, these systems are known to be vulnerable to future quantum computing capabilities.
The replacements are already standardized, with NIST finalizing its first post-quantum standards in August 2024, including ML-KEM for key exchange and ML-DSA alongside SLH-DSA for signatures (NIST). Clear transition deadlines are set, deprecating quantum-vulnerable public-key algorithms after 2030 and disallowing them after 2035, a timeline further accelerated by recent national security announcements. Meanwhile, hardware estimates to break elliptic curves continue to drop, and discoveries made with frontier AI present a second front by exposing vulnerabilities in currently used cryptography regardless of quantum hardware.
Not everything is at risk. Well-built hash functions and strong symmetric ciphers are expected to hold. The lesson for system designers is to lean in and to make cryptographic system components replaceable, or as stated by the NSA, build systems that demonstrate “cryptographic agility.”
Why this was already in Midnight's plans
Midnight is already building towards a post-quantum secure future, where the privacy, integrity, and ownership of digital assets can be preserved as computational capabilities evolve. This commitment is reflected in both our existing protocol architecture and our research and development roadmap.
A foundation built on hash functions.
Midnight's shielded ledger uses hash-based structures to define asset ownership, coin commitments, and spending authorization. Hash-based mechanisms do not rely on elliptic-curve math, which means the core ownership model of Midnight's shielded state is inherently resilient against quantum vulnerabilities.
A post-quantum transition on the roadmap.
Midnight actively participates in developing post-quantum proving technology through initiatives like Nightstream, an open project hosted under the Linux Foundation Decentralized Trust. This research focuses on advanced cryptographic proofs designed to secure transaction zero-knowledge (ZK) logic against quantum threats.
Furthermore, Midnight's protocol architecture supports versioned signatures and proof systems. This inherent cryptographic agility allows new, quantum-resistant algorithms to be introduced seamlessly over time without resetting network history.
Steps already under way
Today, like most major blockchain platforms, Midnight uses established cryptography for transaction signatures, ZK proofs, and note encryption.
Active work is already underway across several key areas to upgrade these components to post-quantum standards:
- Shielded note encryption. A problem statement for post-quantum confidentiality in Midnight's shielded protocol, MPS-0050, was accepted into the Midnight improvement process in November (proposal). This is the item we treat as most urgent, because encrypted data on a public ledger is the textbook harvest-now, decrypt-later target.
- Transaction signatures. A companion problem statement, MPS-0051, covers post-quantum authorization for unshielded spending. Further proposals for signatures, consensus keys and migration are open for review.
- Proof system. Nightstream is research software designed for a quantum adversary. It is not yet production-ready, but is well underway and development is public.
In line with the NSA's first recommended step, we are reviewing every cryptographic dependency across the ledger, the node, wallets and the Compact language to ensure Midnight is ready for the quantum era. As we have always planned, the next-generation cryptography will arrive in stages to safeguard the Midnight blockchain.
What you can do now
- If you build on Midnight: prefer hash-based patterns in Compact, such as deriving identities from a hashed secret, over verifying elliptic-curve signatures in-circuit. Deploy contracts with a maintenance authority so their keys can be upgraded.
- If you hold assets: avoid reusing unshielded addresses. An address that has never been spent reveals only a hash of its key.
- If you care about how this is decided: the proposals are public. Read them and comment.
The NSA's message is that the transition can no longer wait for a convenient moment. We agree. Midnight's foundations suit this transition, the plan predates the NSA’s announcement, the work is in progress, and we will keep reporting on it.

