Prerequisite: Falcon / FN-DSA

Compare the two NIST lattice signature families at Level 1: ML-DSA-44 needs a 1,312-byte public key and a 2,420-byte signature (3,732 B combined), whereas Falcon-512 (FN-DSA) needs an 897-byte public key and a 666-byte signature (1,563 B combined — 2.4× smaller combined, 3.6× smaller signature). Why can Falcon omit the huge masking vectors that bloat ML-DSA? Because Falcon possesses a genuine geometric lattice trapdoor.

Step 1: Build two bases of the same NTRU lattice by hand

Strip polynomial rings down to integers (n=1n = 1) modulo q=197q = 197 so every vector lives in the plane Z2\mathbb{Z}^2. Pick short coprime secret integers f=7f = 7 and g=5g = 5, and publish their modular ratio:

h=g⋅f−1 mod 197=5⋅7−1 mod 197=5⋅169 mod 197=57h = g \cdot f^{-1} \bmod 197 = 5 \cdot 7^{-1} \bmod 197 = 5 \cdot 169 \bmod 197 = 57

Check 7⋅57=399=2⋅197+5≡5(mod197)7 \cdot 57 = 399 = 2 \cdot 197 + 5 \equiv 5 \pmod{197}. Anyone holding hh can write down the public row basis of the NTRU lattice Λh={(u,v)∈Z2:v≡hu(mod197)}\Lambda_h = \{(u, v) \in \mathbb{Z}^2 : v \equiv h u \pmod{197}\}:

Bpub=[1570197],det⁡(Bpub)=197B_{\mathrm{pub}} = \begin{bmatrix} 1 & 57 \\ 0 & 197 \end{bmatrix}, \qquad \det(B_{\mathrm{pub}}) = 197

Notice how bad BpubB_{\mathrm{pub}} is for decoding: its rows have Euclidean norms 1+572≈57.01\sqrt{1 + 57^2} \approx 57.01 and 197197, nearly parallel in angle! Meanwhile, the key owner uses the extended Euclidean algorithm on (f,g)=(7,5)(f, g) = (7, 5) (7(3)−5(4)=17(3) - 5(4) = 1, scaled by 197197 to (F0,G0)=(788,591)(F_0, G_0) = (788, 591)) and size-reduces (F0,G0)(F_0, G_0) against (f,g)(f, g) by subtracting k=⌊(788⋅7+591⋅5)/74⌉=114k = \lfloor (788 \cdot 7 + 591 \cdot 5)/74 \rceil = 114 copies of (7,5)(7, 5), obtaining (F,G)=(−10,21)(F, G) = (-10, 21):

Bsec=[fgFG]=[75−1021],det⁡(Bsec)=7(21)−5(−10)=197B_{\mathrm{sec}} = \begin{bmatrix} f & g \\ F & G \end{bmatrix} = \begin{bmatrix} 7 & 5 \\ -10 & 21 \end{bmatrix}, \qquad \det(B_{\mathrm{sec}}) = 7(21) - 5(-10) = 197

Both rows of BsecB_{\mathrm{sec}} satisfy v≡57u(mod197)v \equiv 57 u \pmod{197} (check 57(−10)=−570=−3(197)+2157(-10) = -570 = -3(197) + 21), and their determinant is 197197, so BsecB_{\mathrm{sec}} generates the exact same lattice Λh\Lambda_h — but with nearly orthogonal short vectors of lengths 74≈8.60\sqrt{74} \approx 8.60 and 541≈23.26\sqrt{541} \approx 23.26!

Step 2: Hash-and-Sign and why naive Babai leaks the secret key

To sign a message mm with salt rr, hash c=H(r∥m)∈Zqc = H(r \parallel m) \in \mathbb{Z}_q and form the target point t=(0,c)t = (0, c). Any lattice point v=(v1,v2)∈Λhv = (v_1, v_2) \in \Lambda_h close to tt defines a short difference vector s=t−v=(s1,s2)s = t - v = (s_1, s_2) satisfying:

s1h+s2≡(−v1)h+(c−v2)≡c−(v2−hv1)≡c(mod197)s_1 h + s_2 \equiv (-v_1) h + (c - v_2) \equiv c - (v_2 - h v_1) \equiv c \pmod{197}

The verifier doesn't even need to send s2s_2! Given only s1s_1 and rr, the verifier recomputes c=H(r∥m)c = H(r \parallel m), recovers s2=(c−s1h) mod ±197s_2 = (c - s_1 h) \bmod^\pm 197, and checks that ∥(s1,s2)∥2≤β2\|(s_1, s_2)\|^2 \le \beta^2. Compressing a single short polynomial s1s_1 with Golomb-Rice coding is why Falcon-512 fits in 666 bytes!

The fatal trap (NTRUSign, broken by Nguyen & Regev in 2006): What if the signer finds vv by deterministic rounding v=⌊tBsec−1⌉Bsecv = \lfloor t B_{\mathrm{sec}}^{-1} \rceil B_{\mathrm{sec}}? Then every signature s=t−vs = t - v is uniformly distributed over the fundamental parallelepiped [−1/2,1/2)2Bsec[-1/2, 1/2)^2 B_{\mathrm{sec}}. Its covariance matrix across many signatures is 112Bsec⊤Bsec\frac{1}{12} B_{\mathrm{sec}}^\top B_{\mathrm{sec}}, and its extreme corners literally align with ±f,±g,±F,±G\pm f, \pm g, \pm F, \pm G!

Step 3: How GPV spherical Gaussian sampling erases the parallelepiped

Gentry, Peikert, and Vaikuntanathan (2008) proved how to sample vv without leaking a single bit of BsecB_{\mathrm{sec}}: run randomized Klein / Fast-Fourier Nearest Plane where each scalar rounding step samples from a 1D discrete Gaussian whose width is scaled inversely by the Gram–Schmidt norm ∥b~i∥\|\tilde{b}_i\| so the combined 2D/2n-D residual s=t−vs = t - v follows a perfectly spherical discrete Gaussian DΛh−t,σD_{\Lambda_h - t, \sigma} whenever σ\sigma exceeds the smoothing parameter ηε(Λh)≈max⁡i∥b~i∥⋅ln⁡(4n/ε)/π\eta_\varepsilon(\Lambda_h) \approx \max_i \|\tilde{b}_i\| \cdot \sqrt{\ln(4n / \varepsilon)/\pi}. Because a sphere looks identical from every basis angle, the signature distribution depends only on the public lattice Λh\Lambda_h and public width σ\sigma.

Demonstrate the Babai covariance leak vs. GPV symmetry in Python

import math, random

q = 197
B_sec = [[7, 5], [-10, 21]]  # det = 197, Gram-Schmidt norms: sqrt(74)=8.60, 197/sqrt(74)=22.90

def babai_round_sign(c: int) -> tuple[int, int]:
    # t = (0, c); B_sec^-1 = [[21, -5], [10, 7]] / 197
    u0 = round((-10 * c) / q)  # wait: t * B_sec^-1 = c * [-10/197, 7/197]? Let's check exact inverse!
    # B_sec = [[7, 5], [-10, 21]] -> inv = [[21, -5], [10, 7]] / 197 -> [0, c] * inv = [10*c/197, 7*c/197]
    k0, k1 = round((10 * c) / q), round((7 * c) / q)
    v = (k0 * 7 + k1 * (-10), k0 * 5 + k1 * 21)
    return (-v[0], c - v[1])

def gpv_klein_sign(c: int, sigma: float, rng: random.Random) -> tuple[int, int]:
    # Gram-Schmidt of B_sec: b1* = (7, 5), mu_21 = (-70 + 105)/74 = 35/74, b2* = (-995/74, 1379/74)
    def dgauss(center: float, s: float) -> int:
        lo, hi = math.floor(center - 6 * s), math.ceil(center + 6 * s)
        xs = list(range(lo, hi + 1))
        weights = [math.exp(-math.pi * ((x - center) / s) ** 2) for x in xs]
        return rng.choices(xs, weights=weights)[0]

    # Step 1: project t=(0, c) onto b2*: <t, b2*>/<b2*, b2*> = c * (1379/74) / (197^2 / 74) = 7*c / 197
    norm_b2 = q / math.sqrt(74)
    k1 = dgauss((7 * c) / q, sigma / norm_b2)
    # Step 2: subtract k1 * b2 from t -> t' = (10*k1, c - 21*k1), project onto b1 = (7, 5)
    t_rem = (10 * k1, c - 21 * k1)
    center0 = (7 * t_rem[0] + 5 * t_rem[1]) / 74.0
    k0 = dgauss(center0, sigma / math.sqrt(74))
    v = (k0 * 7 - k1 * 10, k0 * 5 + k1 * 21)
    return (-v[0], c - v[1])

rng = random.Random(7)
babai_sigs = [babai_round_sign(c) for c in range(q)]
gpv_sigs = [gpv_klein_sign(rng.randrange(q), sigma=45.0, rng=rng) for _ in range(2000)]

def corr(pts):
    mx = sum(x for x, _ in pts) / len(pts)
    my = sum(y for _, y in pts) / len(pts)
    vx = sum((x - mx)**2 for x, _ in pts) / len(pts)
    vy = sum((y - my)**2 for _, y in pts) / len(pts)
    cov = sum((x - mx)*(y - my) for x, y in pts) / len(pts)
    return round(vx / vy, 2), round(cov / math.sqrt(vx * vy), 3)

print("Babai (var_x/var_y, corr):", corr(babai_sigs), "<- anisotropic! Leaks B_sec^T B_sec")
print("GPV   (var_x/var_y, corr):", corr(gpv_sigs),   "<- isotropic (~1.0, ~0.0)! Zero basis leak")

In degree n=512n = 512 or 10241024, running Klein's sequential Gram–Schmidt orthogonalization over integer matrices would cost O(n2)O(n^2) time and megabytes of key storage. Falcon exploits the tower structure of Q[X]/(X2k+1)\mathbb{Q}[X]/(X^{2^k}+1) via Fast Fourier Orthogonalization (ffSampling) in O(nlog⁡n)O(n \log n) floating-point operations — trading wire compactness for the constant-time FPU engineering discussed in Choosing a Post-Quantum Signature Scheme.