Lattice Cryptography, Explained: The Backbone of Post-Quantum Security
Much of the general-purpose post-quantum cryptography now entering deployment is lattice-based. NIST’s primary key-establishment standard, ML-KEM, and its primary signature standard, ML-DSA, both rest on structured lattice problems. That puts lattices at the center of the quantum-security transition, and it concentrates a lot of trust in one math family. Here’s what a lattice problem is and why no known quantum algorithm breaks it efficiently, plus why that concentration warrants a second look.
What a lattice is
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.
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.
Learning With Errors: The workhorse
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.
The concentration risk
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
Lattice-based signatures are a leading candidate for future blockchain upgrades, but the industry hasn’t converged on ML-DSA or any other single post-quantum signature scheme. Networks have to weigh signature size, verification cost, hardware-wallet support, and how a new scheme fits their existing addresses and consensus rules.
If a chain does pick ML-DSA or another lattice signature, lattice assumptions become part of what protects assets on that network. A hash-based option sits alongside it as a mathematically different choice, with its own tradeoffs in size and speed.
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 that slower story, and you should be watching even though the danger isn’t at your door yet.