>_ Skip to main content
Menu
Search

Post-Quantum Cryptography and Encryption Field Guide

Lattice Cryptography, Explained: The Backbone of Post-Quantum Security

BACKS
ML-KEM + ML-DSA
NIST’s main standards
WHY SAFE
No Shor shortcut
lattice problems lack the structure
THE WORKHORSE
Learning With Errors
noisy linear algebra
THE RISK
Concentration
one math family under many standards

Most of the post-quantum cryptography now deploying is lattice-based: NIST’s main key-exchange standard (ML-KEM) and main signature standard (ML-DSA) both rest on structured lattice problems. A lattice is the grid of whole-number combinations of some basis vectors, and in hundreds of dimensions certain problems, like finding a very short vector, get extremely hard. Shor’s algorithm doesn’t break them, because nobody knows how to cast a lattice problem into the periodic form Shor exploits. The catch is concentration: leaning so much on one math family is a risk, which is why NIST added non-lattice backups (hash-based SLH-DSA, code-based HQC). Your wallet still runs on elliptic curves today.

Part of the Post-Quantum Cryptography and Encryption guide series

What a lattice is

Why this matters

Lattices sit under NIST’s main post-quantum standards, so a lot of trust rides on one math family. None of it signs your wallet today; Bitcoin and Ethereum still run on elliptic curves. For how the families compare, see Lattice vs Hash vs Code Signatures.

A lattice is the set of points you get by taking whole-number combinations of a handful of basis vectors. In two dimensions it can look like a grid, tilted or stretched at an angle. Cryptographic lattices live in hundreds of dimensions, where certain problems get incredibly difficult: finding an unusually short vector, or decoding a point that’s been nudged off the grid by noise.

That said, high dimension alone doesn’t make a lattice secure, as some instances are easy. The standards use carefully chosen structure and parameters where no efficient classical or quantum attack is known, and their safety rests on the construction and the implementation as much as the geometry.

What a lattice is

High dimension alone doesn’t make a lattice secure, since some instances are easy. The standards use carefully chosen structure and parameters where no efficient classical or quantum attack is known, and their safety rests on the construction and the implementation as much as the geometry.

The object
whole-number combinations of a few basis vectors
In 2D
a tilted or stretched grid
The hard problems
find an unusually short vector, or decode a point nudged off the grid by noise

Why Shor’s algorithm doesn’t break it

Shor’s algorithm breaks RSA and elliptic-curve crypto by exploiting a kind of hidden periodic structure tied to factoring and discrete logarithms. Researchers don’t know how to turn the lattice problems behind ML-KEM and ML-DSA into that same efficiently solvable shape, so Shor’s method doesn’t carry over to them.

This isn’t a proof that quantum computers can never break these schemes. Quantum techniques can speed up parts of the best known lattice attacks, and NIST considered those attacks when evaluating the standards and their parameters. The careful claim is narrower: nobody has found a fast quantum algorithm that destroys these lattice schemes the way Shor’s algorithm destroys RSA.

The careful claim

Shor breaks RSA and elliptic curves by exploiting a hidden periodic structure tied to factoring and discrete logs. Nobody knows how to turn lattice problems into that same solvable shape, so Shor’s method doesn’t carry over. This isn’t a proof: quantum techniques can speed up parts of the best known lattice attacks, which NIST accounted for in the parameters. The narrow claim is that no fast quantum algorithm destroys these schemes the way Shor’s destroys RSA.

Learning With Errors: The workhorse

How Learning With Errors hides a secret
  1. Publish equations

    A batch of linear equations that hide a secret.

  2. Add noise

    A small random error is added to each result.

  3. Without the errors

    Ordinary linear algebra would pull the secret straight out.

  4. With the errors

    Recovering it becomes a noisy-decoding problem connected to hard lattice problems.

The main assumption behind ML-KEM is Module Learning With Errors, or Module-LWE. Plain LWE works like this: you publish a batch of linear equations that hide a secret, then add a small random error to each result. Without the errors, ordinary linear algebra would pull the secret straight out. With them, recovering it becomes a noisy-decoding problem connected through mathematical reductions to difficult lattice problems. ML-DSA leans on Module-LWE too, and its security also rests on Module-SIS-type problems, which involve finding short solutions to modular equations.

Both standards work with vectors over polynomial rings. This structure is what makes the keys smaller and the arithmetic faster than plainer lattice designs, and it comes with a string attached: the extra structure gives cryptanalysts something specific to probe for weaknesses. None of this removes the ordinary implementation risks either. Side-channel leakage or weak randomness can expose a key without anyone solving a lattice problem at all.

Structure cuts both ways

ML-KEM rests on Module-LWE; ML-DSA on Module-LWE plus Module-SIS-type problems (finding short solutions to modular equations). Working over polynomial rings makes the keys smaller and the arithmetic faster, but the extra structure also gives cryptanalysts something specific to probe. And ordinary implementation risks remain: side-channel leakage or weak randomness can expose a key without anyone solving a lattice problem at all.

The concentration risk

StandardRests onNon-lattice backup
ML-KEM (key exchange)Module-LWE (lattice)HQC (code-based, selected 2025, still in development)
ML-DSA (signatures)Module-LWE + Module-SIS (lattice)SLH-DSA (hash-based, standardized)

ML-KEM and ML-DSA rest on related module-lattice math, even close cousins in the polynomial rings they use. A breakthrough against a shared assumption could reach several standards at once, though plenty of attacks would stay stuck to one scheme or one parameter set. NIST planned for this.

It standardized SLH-DSA, a signature built from hash functions instead of lattices, meant as a backup if ML-DSA is ever broken. This gives implementers a non-lattice signature to reach for, but it doesn’t diversify anything on its own. A system only benefits if it deploys the alternative or keeps enough agility to switch.

This backup only covers half the problem. SLH-DSA backs up signatures, and it does nothing for key establishment. For that side, NIST picked a code-based scheme called HQC in 2025 as the eventual non-lattice backup to ML-KEM, and its standard is still under development.

Implications for your wallet

Where your wallet sits

Lattice signatures are a leading candidate for future blockchain upgrades, but the industry hasn’t converged on ML-DSA or any single scheme; networks weigh signature size, verification cost, hardware-wallet support, and how a new scheme fits their existing addresses and consensus rules. If a chain picks a lattice signature, lattice assumptions become part of what protects assets there, with a hash-based option alongside as a mathematically different bet.

Today, Bitcoin and Ethereum, along with most other major networks, still run on elliptic-curve signatures, and no publicly known quantum computer can break those at this moment. The live problem is migration: networks and their users may need years to agree on new rules and move vulnerable funds before a capable machine exists.

The lattice question is part of the slower migration story. Watch it, even though the danger isn’t at your door yet.


This article is educational and does not constitute security or investment advice.

// FAQ

What is lattice cryptography?

Cryptography whose security rests on hard problems in lattices, the grids formed by whole-number combinations of basis vectors. In hundreds of dimensions, problems like finding a very short vector become intractable. NIST’s ML-KEM and ML-DSA are built on it.

Why doesn't Shor's algorithm break lattice schemes?

Shor exploits a hidden periodic structure in factoring and discrete logarithms. Lattice problems don’t have a known way to be cast into that form, so Shor’s method doesn’t apply. It isn’t a proof of safety, but no comparable quantum shortcut is known.

What is Learning With Errors?

The main assumption under ML-KEM. You publish linear equations that hide a secret and add small random errors; without the noise, linear algebra would recover the secret, but with it the problem becomes a hard noisy-decoding task tied to lattices.

What's the "concentration risk"?

ML-KEM and ML-DSA rest on closely related lattice math, so one breakthrough could affect several standards at once. NIST added non-lattice backups, hash-based SLH-DSA for signatures and code-based HQC for key exchange, but they only help if systems actually deploy them.

Does lattice cryptography protect my crypto today?

Not yet. Bitcoin, Ethereum and most networks still use elliptic-curve signatures, which no known quantum computer can break now. If a chain later adopts a lattice signature like ML-DSA, lattice assumptions become part of its security. The live issue is the slow migration.

// Sources

  1. NIST, FIPS 203 (ML-KEM) https://csrc.nist.gov/pubs/fips/203/final
  2. NIST, FIPS 204 (ML-DSA) https://csrc.nist.gov/pubs/fips/204/final
  3. QNews, Lattice-Based vs Hash-Based vs Code-Based Signatures https://qnews.io/guides/post-quantum-cryptography/lattice-based-vs-hash-based-vs-code-based-signatures/
  4. QNews, NIST's PQC Standards Explained https://qnews.io/guides/post-quantum-cryptography/nists-pqc-standards-ml-kem-ml-dsa-slh-dsa-falcon-hqc-explained/
  5. QNews, Post-Quantum Cryptography: The Quantum Computing Threat, in Plain English https://qnews.io/guides/post-quantum-cryptography/post-quantum-cryptography-a-plain-english-guide-for-crypto-holders/