Glossary

Lattice-Based Cryptography

A family of post-quantum cryptographic constructions based on hard mathematical lattice problems resistant to quantum attacks.

Key Takeaways

  • Lattice-based cryptography builds encryption and digital signatures on mathematical problems that remain hard even for quantum computers, unlike the elliptic curve cryptography used by Bitcoin today.
  • NIST standardized two lattice-based algorithms in August 2024: ML-KEM (formerly Kyber) for key encapsulation and ML-DSA (formerly Dilithium) for digital signatures. These are now published as FIPS 203 and FIPS 204.
  • Key and signature sizes are 10 to 50 times larger than classical equivalents, but computational performance is often faster: ML-KEM key exchange runs roughly 64 times faster than ECDH P-384.

What Is Lattice-Based Cryptography?

Lattice-based cryptography is a family of cryptographic constructions whose security relies on the difficulty of solving problems in high-dimensional mathematical lattices. A lattice is the set of all integer combinations of a set of basis vectors in n-dimensional space. In two or three dimensions, a lattice looks like a regular grid of points. In the hundreds or thousands of dimensions used in cryptography, finding short vectors or close points within the lattice becomes computationally intractable.

What makes lattice problems special is that no known quantum algorithm solves them efficiently. Shor's algorithm breaks RSA and elliptic curve cryptography by exploiting the periodic algebraic structure of factoring and discrete logarithms. Lattice problems lack this structure entirely, making them natural candidates for post-quantum security.

This matters for cryptocurrency. Bitcoin's ECDSA and Schnorr signatures both rely on the secp256k1 elliptic curve, which a sufficiently powerful quantum computer could break. Lattice-based cryptography offers a path to quantum-resistant replacements for these signature schemes.

How It Works

Lattice-based cryptography relies on two core computational problems, both believed to be hard for classical and quantum computers alike.

Learning With Errors (LWE)

Introduced by Oded Regev in 2005, the Learning With Errors problem is the foundation for most lattice-based encryption and key exchange schemes. The idea: given a system of linear equations with small random errors added, recover the secret values.

Formally, given a random matrix A and a vector b where:

b = A · s + e  (mod q)

where:
  A = random matrix in Z_q^(m × n)
  s = secret vector
  e = small error vector (sampled from a discrete Gaussian)
  q = a prime modulus

Without the error term e, recovering s is trivial linear algebra. With the error, the problem becomes computationally intractable in high dimensions. Regev proved that solving average-case LWE is at least as hard as solving worst-case instances of the Shortest Vector Problem (SVP) in lattices: a problem believed to be NP-hard.

Short Integer Solution (SIS)

Introduced by Ajtai in 1996, SIS is the foundation for lattice-based digital signatures and collision-resistant hash functions. Given a random matrix A, find a short non-zero vector x such that:

A · x = 0  (mod q)

where ||x|| ≤ B  (x must be "short")

Solutions always exist because the matrix has more columns than rows. But finding a sufficiently short solution is computationally hard in high dimensions.

Module Variants for Efficiency

Raw LWE and SIS require large matrices, producing impractically large keys. The NIST-standard algorithms use structured variants called Module-LWE and Module-SIS, which operate over polynomial rings rather than plain integers. This reduces key sizes from megabytes to kilobytes while preserving security guarantees. Working over the ring Z_q[x]/(x^n + 1) allows each matrix entry to encode a full polynomial, compressing the mathematical structure dramatically.

NIST-Standardized Algorithms

On August 13, 2024, NIST published three post-quantum cryptographic standards. Two of the three are lattice-based.

ML-KEM: Key Encapsulation (FIPS 203)

ML-KEM (Module-Lattice-Based Key Encapsulation Mechanism), originally known as CRYSTALS-Kyber, provides quantum-resistant key exchange. It replaces classical key exchange protocols like ECDH that rely on elliptic curve discrete logarithms.

Parameter SetSecurity LevelPublic KeyCiphertext
ML-KEM-512Level 1 (AES-128 equivalent)800 bytes768 bytes
ML-KEM-768Level 3 (AES-192 equivalent)1,184 bytes1,088 bytes
ML-KEM-1024Level 5 (AES-256 equivalent)1,568 bytes1,568 bytes

For comparison, an ECDH P-256 public key is only 64 bytes. ML-KEM keys are roughly 18 times larger, but key exchange operations run approximately 64 times faster than ECDH P-384.

ML-DSA: Digital Signatures (FIPS 204)

ML-DSA (Module-Lattice-Based Digital Signature Algorithm), originally CRYSTALS-Dilithium, provides quantum-resistant digital signatures. This is the direct replacement for ECDSA and Schnorr signatures.

Parameter SetSecurity LevelPublic KeySignature Size
ML-DSA-44Level 2 (128-bit)1,312 bytes2,420 bytes
ML-DSA-65Level 3 (192-bit)1,952 bytes3,309 bytes
ML-DSA-87Level 5 (256-bit)2,592 bytes4,627 bytes

An ECDSA signature over secp256k1 is roughly 72 bytes. A Schnorr signature is 64 bytes. ML-DSA-44 signatures are 2,420 bytes: about 38 times larger. However, ML-DSA signing operations typically run faster than RSA and are competitive with ECC.

Additional Standards in Progress

NIST is finalizing FIPS 206 for FN-DSA (formerly FALCON), another lattice-based signature scheme that uses NTRU lattices. FN-DSA produces more compact signatures (approximately 666 bytes at 128-bit security) but requires careful constant-time implementation of floating-point arithmetic. The standard is expected to be finalized in late 2026 or early 2027.

Use Cases

TLS and Secure Communications

The largest deployment of lattice-based cryptography today is in web browsers. Google Chrome enabled hybrid X25519+ML-KEM-768 key exchange by default for TLS 1.3 starting with Chrome 131 in November 2024. Apple deployed Kyber in iMessage PQ3 (iOS 17.4, February 2024), and Signal upgraded to its PQXDH protocol using Kyber in September 2023. These deployments protect against "harvest now, decrypt later" attacks where adversaries record encrypted traffic today for future decryption by quantum computers.

Cryptocurrency and Blockchain

Bitcoin's security model depends on elliptic curve signatures that are vulnerable to Shor's algorithm. Approximately 6 million BTC have exposed public keys on-chain through P2PK addresses, reused P2PKH addresses, and Taproot key-path spends. Lattice-based signatures are a leading candidate for post-quantum Bitcoin transaction signing. BIP-360 (Pay-to-Merkle-Root), merged into the Bitcoin repository in February 2026, represents the first concrete step toward quantum-resistant address formats. For a deeper analysis, see the post-quantum cryptography threat assessment.

Layer 2 Protocols

Layer 2 solutions can adopt post-quantum cryptography more quickly than the base layer because they do not require Bitcoin consensus changes. Off-chain signature schemes, key exchange for channel establishment, and threshold signing protocols can all transition to lattice-based constructions independently. The Hermine lattice-based threshold signature scheme, finalized in March 2026, demonstrates this path for protocols like Spark.

Government and Enterprise

A U.S. Executive Order issued in June 2026 directs all federal agencies to transition to NIST-approved post-quantum cryptography. High-value assets must use PQC for key establishment by December 31, 2030, and for digital signatures by December 31, 2031. The NSA's CNSA 2.0 suite mandates ML-KEM-1024 and ML-DSA-87 for national security systems, with full compliance required by 2035.

Risks and Considerations

Larger Keys and Signatures

The most immediate tradeoff is size. Lattice-based public keys and signatures are an order of magnitude larger than their classical equivalents. For Bitcoin, this is especially significant because block space is scarce. A standard 1-input, 2-output Schnorr transaction weighs roughly 560 weight units and allows approximately 7,000 transactions per block. Replacing Schnorr with ML-DSA-44 would roughly quadruple transaction weight, cutting per-block capacity to under 2,000 transactions.

Relative Immaturity

RSA and ECC have been studied extensively for decades. Lattice-based schemes, while grounded in problems studied since the 1990s, have been deployed at scale only since 2023. The structured variants (Ring-LWE, Module-LWE) used in practice have a shorter cryptanalytic history than the underlying unstructured problems. A breakthrough in lattice reduction algorithms, while considered unlikely, would have broad implications.

Implementation Complexity

Correct implementation of lattice-based schemes requires careful attention to constant-time arithmetic, noise sampling, and error handling. FN-DSA (Falcon) in particular requires floating-point operations that are difficult to implement in constant time across different hardware platforms. Side-channel attacks targeting error distributions remain an active area of research.

Hybrid Deployment Period

The industry consensus during the transition is to use hybrid schemes that combine classical and post-quantum algorithms. Chrome uses X25519+ML-KEM-768, meaning both classical ECDH and lattice-based key exchange must be broken to compromise the session. This doubles handshake sizes and adds complexity but protects against the possibility that either algorithm has undiscovered weaknesses.

Impact on Bitcoin's UTXO Model

Larger public keys and signatures inflate the UTXO set and increase on-chain storage requirements. Fee market dynamics would shift as users pay more per transaction due to increased weight. Techniques like signature aggregation and off-chain verification through Layer 2 protocols offer partial mitigation, but the base-layer impact remains substantial.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.