Module 04: Lattice Commitments — Ajtai and BDLOP

1. The Bridge from IPA / Pedersen Commitments

In Bulletproofs / IPA and Plonk, the workhorse vector commitment is the Pedersen Vector Commitment: Com(x;r)=∑i=1mxiGi+rH∈G.\text{Com}(\mathbf{x}; r) = \sum_{i=1}^m x_i G_i + r H \in \mathbb{G}. Recall its two superpowers:

  1. Perfectly Hiding, Computationally Binding: Even a single random scalar r∈Fpr \in \mathbb{F}_p completely hides x∈Fpm\mathbf{x} \in \mathbb{F}_p^m (information-theoretically!), while binding holds for arbitrary x∈Fpm\mathbf{x} \in \mathbb{F}_p^m under Discrete Log.
  2. Additively Homomorphic: Com(x;r)+c⋅Com(y;s)=Com(x+cy;r+cs)\text{Com}(\mathbf{x}; r) + c \cdot \text{Com}(\mathbf{y}; s) = \text{Com}(\mathbf{x} + c\mathbf{y}; r + cs).

Now let's translate this to lattices—and watch closely where things work identically and where they break!


2. Ajtai Commitments (The Direct Pedersen Analogue)

2.1 Construction

Let Rq=Zq[X]/(Xd+1)R_q = \mathbb{Z}_q[X]/(X^d + 1) and let κ\kappa be the M-SIS security rank. Sample a uniformly random public matrix A←Rqκ×mA \leftarrow R_q^{\kappa \times m} (like the generators (G1,…,Gm)(G_1, \dots, G_m) in Pedersen!).

To commit to a short vector x∈Rm\mathbf{x} \in R^m with ∥x∥2≤β\|\mathbf{x}\|_2 \le \beta: ComA(x)=Ax(modq)∈Rqκ.\text{Com}_A(\mathbf{x}) = A \mathbf{x} \pmod q \in R_q^\kappa.

(If you want hiding too, append randomness r∈Rm′\mathbf{r} \in R^{m'} with small coefficients and a random matrix Arand∈Rqκ×m′A_{\text{rand}} \in R_q^{\kappa \times m'}, and output Ax+Arandr mod qA\mathbf{x} + A_{\text{rand}}\mathbf{r} \bmod q.)

2.2 Binding: Norm-Bounded Binding!

What does it mean to open C=ComA(x)C = \text{Com}_A(\mathbf{x})? The verifier checks two things:

  1. Ax≡C(modq)A\mathbf{x} \equiv C \pmod q, AND
  2. ∥x∥2≤Bopen\|\mathbf{x}\|_2 \le B_{\text{open}} (where Bopen≥βB_{\text{open}} \ge \beta is an explicit norm bound—often larger than β\beta to allow for ZK slack, as we'll see in Module 05!).

Theorem (Binding): If an adversary produces two valid openings (x,x′)(\mathbf{x}, \mathbf{x}') with x≠x′\mathbf{x} \neq \mathbf{x}' and ∥x∥2,∥x′∥2≤Bopen\|\mathbf{x}\|_2, \|\mathbf{x}'\|_2 \le B_{\text{open}} for the same CC, then z=x−x′≠0\mathbf{z} = \mathbf{x} - \mathbf{x}' \neq \mathbf{0} satisfies: Az≡0(modq)and∥z∥2≤2Bopen,A \mathbf{z} \equiv \mathbf{0} \pmod q \quad \text{and} \quad \|\mathbf{z}\|_2 \le 2 B_{\text{open}}, solving M-SISκ,m,q,2Bopen\text{M-SIS}_{\kappa, m, q, 2 B_{\text{open}}}!

Critical Contrast with Pedersen:

  • In Pedersen, rHr H hides x\mathbf{x} unconditionally, and binding holds for every x∈Fpm\mathbf{x} \in \mathbb{F}_p^m.
  • In Ajtai, you MUST check the norm! And notice: if CC is homomorphically combined many times: c1C1+c2C2=A(c1x1+c2x2),c_1 C_1 + c_2 C_2 = A(c_1 \mathbf{x}_1 + c_2 \mathbf{x}_2), the opening vector c1x1+c2x2c_1 \mathbf{x}_1 + c_2 \mathbf{x}_2 grows in norm! If it grows past qq (or past the M-SIS hardness threshold βSIS\beta_{\text{SIS}}), binding evaporates completely!

2.3 What about Hiding in Pure Ajtai?

Wait: in pure Ajtai Ax+Arandr mod qA\mathbf{x} + A_{\text{rand}}\mathbf{r} \bmod q, how large must m′m' (the dimension of randomness r\mathbf{r}) be to get statistical hiding? By the Leftover Hash Lemma (LHL) over RqR_q, for Arandr mod qA_{\text{rand}} \mathbf{r} \bmod q to be statistically close to uniform on RqκR_q^\kappa, the entropy of r\mathbf{r} must exceed log⁡2∣Rqκ∣=κdlog⁡2q\log_2 |R_q^\kappa| = \kappa d \log_2 q bits! If r∈{−1,0,1}m′d\mathbf{r} \in \{-1, 0, 1\}^{m' d}, that requires m′≈κlog⁡2qm' \approx \kappa \log_2 q ring elements—which is huge (e.g., if κ=8\kappa = 8 and log⁡q=32\log q = 32, m′≈256m' \approx 256 polynomials in every single commitment!).

Can we get hiding with a tiny randomness vector (say m′≈2κm' \approx 2\kappa, independent of log⁡q\log q), just like Pedersen only adds a single rHr H? Yes—by switching from statistical hiding (LHL) to computational hiding (Module-LWE)! That brings us to BDLOP.


3. BDLOP Commitments (Baum–Damgård–Lyubashevsky–Oechsner–Peikert, 2018)

BDLOP is the Swiss Army knife of modern lattice zero-knowledge proofs (used in LNP22, Dilithium-style proofs, verifiable encryption, etc.).

3.1 The Core Idea: Split Binding and Hiding Across Two Equations!

Suppose we want to commit to a message vector m∈Rqℓ\mathbf{m} \in R_q^\ell that might NOT even be short! (Think about Plonk: wire values or field elements in Fq\mathbb{F}_q are arbitrary elements of RqR_q, not short!) Wait—how can a lattice commitment possibly commit to an unbounded message m∈Rqℓ\mathbf{m} \in R_q^\ell without breaking SIS?

Look at the BDLOP trick: Put the binding on a SHORT randomness vector r\mathbf{r}, and use r\mathbf{r} to mask m\mathbf{m}!

Let r←χm1+m2\mathbf{r} \leftarrow \chi^{m_1 + m_2} (Wait: let's stick to standard BDLOP notation with A1,A2A_1, A_2!). Sample public matrices:

  • A1←Rqκ×mA_1 \leftarrow R_q^{\kappa \times m} (usually A1=[Iκ∣A1′]A_1 = [I_\kappa \mid A_1'] in Hermite Normal Form, where m=κ+λsecm = \kappa + \lambda_{\text{sec}}; e.g., m≈2κm \approx 2\kappa or κ+ℓ+sec\kappa + \ell + \text{sec}),
  • A2←Rqℓ×mA_2 \leftarrow R_q^{\ell \times m} (or B∈Rqℓ×mB \in R_q^{\ell \times m}).

To commit to a message vector m∈Rqℓ\mathbf{m} \in R_q^\ell (of arbitrary coefficients in Zq\mathbb{Z}_q!):

  1. Sample a short randomness vector r∈Rm\mathbf{r} \in R^m with ∥r∥∞≤ν\|\mathbf{r}\|_\infty \le \nu (e.g., ν=1\nu = 1, coefficients in {−1,0,1}\{-1, 0, 1\}).
  2. Output the two-part commitment t=(t1,t2)∈Rqκ×Rqℓ\mathbf{t} = (\mathbf{t}_1, \mathbf{t}_2) \in R_q^\kappa \times R_q^\ell: (t1t2)=(A1A2)r+(0m)(modq).\begin{pmatrix} \mathbf{t}_1 \\ \mathbf{t}_2 \end{pmatrix} = \begin{pmatrix} A_1 \\ A_2 \end{pmatrix} \mathbf{r} + \begin{pmatrix} \mathbf{0} \\ \mathbf{m} \end{pmatrix} \pmod q.

Wait—read that equation twice! It is astonishingly clean:

  • Top part: t1=A1r(modq)\mathbf{t}_1 = A_1 \mathbf{r} \pmod q. Notice m\mathbf{m} does not appear here!
  • Bottom part: t2=A2r+m(modq)\mathbf{t}_2 = A_2 \mathbf{r} + \mathbf{m} \pmod q. Here r\mathbf{r} acts as an LWE mask hiding m\mathbf{m}!

Let's check both security properties!

3.2 Why BDLOP is Computationally Hiding (under Module-LWE)

Put A1A_1 and A2A_2 together as A=(A1A2)∈Rq(κ+ℓ)×mA = \begin{pmatrix} A_1 \\ A_2 \end{pmatrix} \in R_q^{(\kappa + \ell) \times m}. Write A1=[Iκ∣A1′]A_1 = [I_\kappa \mid A_1'] and split r=(r1r2)\mathbf{r} = \begin{pmatrix} \mathbf{r}_1 \\ \mathbf{r}_2 \end{pmatrix} with r1∈Rκ\mathbf{r}_1 \in R^\kappa, r2∈Rm−κ\mathbf{r}_2 \in R^{m-\kappa}: t1=r1+A1′r2(modq),t2=A2′r2+r1′+m(modq)\mathbf{t}_1 = \mathbf{r}_1 + A_1' \mathbf{r}_2 \pmod q, \qquad \mathbf{t}_2 = A_2' \mathbf{r}_2 + \mathbf{r}_1' + \mathbf{m} \pmod q (more cleanly, put A=[IκA1′0A2′]A = \begin{bmatrix} I_\kappa & A_1' \\ 0 & A_2' \end{bmatrix}? Usually A1=[Iκ∣A1′]A_1 = [I_\kappa \mid A_1'] and A2=[0ℓ×κ∣Iℓ∣A2′]A_2 = [0_{\ell \times \kappa} \mid I_\ell \mid A_2'], so the secret is s=rlast\mathbf{s} = \mathbf{r}_{\text{last}} of length m−κ−ℓm - \kappa - \ell, and the first κ+ℓ\kappa + \ell entries of r\mathbf{r} are the LWE errors!). Let's write that exact HNF structure out—it's super illuminating: If m=κ+ℓ+λm = \kappa + \ell + \lambda, and we structure the public matrix in Hermite Normal Form: (t1t2)=(Iκ0B10IℓB2)(e1e2s)+(0m)(modq),\begin{pmatrix} \mathbf{t}_1 \\ \mathbf{t}_2 \end{pmatrix} = \begin{pmatrix} I_\kappa & 0 & B_1 \\ 0 & I_\ell & B_2 \end{pmatrix} \begin{pmatrix} \mathbf{e}_1 \\ \mathbf{e}_2 \\ \mathbf{s} \end{pmatrix} + \begin{pmatrix} \mathbf{0} \\ \mathbf{m} \end{pmatrix} \pmod q, where e1∈Rκ,e2∈Rℓ,s∈Rλ\mathbf{e}_1 \in R^\kappa, \mathbf{e}_2 \in R^\ell, \mathbf{s} \in R^\lambda are all short (←χ\leftarrow \chi). Look at (B1s+e1B2s+e2)\begin{pmatrix} B_1 \mathbf{s} + \mathbf{e}_1 \\ B_2 \mathbf{s} + \mathbf{e}_2 \end{pmatrix}: that is literally κ+ℓ\kappa + \ell Module-LWE samples with secret s∈Rλ\mathbf{s} \in R^\lambda! Under M-LWEλ,κ+ℓ,q,χ\text{M-LWE}_{\lambda, \kappa+\ell, q, \chi}, this vector is computationally indistinguishable from uniform over Rqκ+ℓR_q^{\kappa+\ell}. Adding (0,m)T(0, \mathbf{m})^T to a uniform vector yields a uniform vector—so (t1,t2)(\mathbf{t}_1, \mathbf{t}_2) reveals zero information about m\mathbf{m}!

Notice the sizing advantage over Ajtai:

  • λ\lambda (the M-LWE rank) only needs to be ≈2\approx 2–44 (for d=64d=64 or 128128), independent of ℓ\ell!
  • Even if you commit to ℓ=1000\ell = 1000 messages m∈Rq1000\mathbf{m} \in R_q^{1000}, you only add κ+ℓ+λ\kappa + \ell + \lambda short randomness polynomials—no blowup by log⁡q\log q!

3.3 Why BDLOP is Computationally Binding (under Module-SIS)

Wait: how can t=(A1r,A2r+m)\mathbf{t} = (A_1 \mathbf{r}, A_2 \mathbf{r} + \mathbf{m}) be binding for any m∈Rqℓ\mathbf{m} \in R_q^\ell when m\mathbf{m} is NOT short?! Watch the magic: Suppose a prover opens the same commitment (t1,t2)(\mathbf{t}_1, \mathbf{t}_2) to two different messages m≠m′\mathbf{m} \neq \mathbf{m}' using valid short randomness vectors r,r′\mathbf{r}, \mathbf{r}' with ∥r∥2,∥r′∥2≤Bopen\|\mathbf{r}\|_2, \|\mathbf{r}'\|_2 \le B_{\text{open}}:

  1. From the top equation t1\mathbf{t}_1: A1r≡t1≡A1r′(modq)  ⟹  A1(r−r′)≡0(modq).A_1 \mathbf{r} \equiv \mathbf{t}_1 \equiv A_1 \mathbf{r}' \pmod q \implies A_1(\mathbf{r} - \mathbf{r}') \equiv \mathbf{0} \pmod q.
  2. From the bottom equation t2\mathbf{t}_2: A2r+m≡t2≡A2r′+m′(modq)  ⟹  A2(r−r′)≡m′−m≢0(modq)!A_2 \mathbf{r} + \mathbf{m} \equiv \mathbf{t}_2 \equiv A_2 \mathbf{r}' + \mathbf{m}' \pmod q \implies A_2(\mathbf{r} - \mathbf{r}') \equiv \mathbf{m}' - \mathbf{m} \not\equiv \mathbf{0} \pmod q!
  3. Since m′−m≠0\mathbf{m}' - \mathbf{m} \neq \mathbf{0}, we must have r−r′≠0\mathbf{r} - \mathbf{r}' \neq \mathbf{0}!
  4. Therefore z=r−r′≠0\mathbf{z} = \mathbf{r} - \mathbf{r}' \neq \mathbf{0} is a nontrivial short solution to: A1z≡0(modq)with∥z∥2≤2Bopen,A_1 \mathbf{z} \equiv \mathbf{0} \pmod q \quad \text{with} \quad \|\mathbf{z}\|_2 \le 2 B_{\text{open}}, which breaks M-SISκ,m,q,2Bopen\text{M-SIS}_{\kappa, m, q, 2B_{\text{open}}}! ■\blacksquare

Pause and appreciate how clever BDLOP is:

  • t1=A1r\mathbf{t}_1 = A_1 \mathbf{r} pins down r\mathbf{r} uniquely (as long as r\mathbf{r} is short, by M-SIS on A1A_1).
  • Once r\mathbf{r} is pinned down, m=t2−A2r mod q\mathbf{m} = \mathbf{t}_2 - A_2 \mathbf{r} \bmod q is uniquely determined—even if m\mathbf{m} is completely arbitrary (not short at all)!
  • AND the commitment overhead t1∈Rqκ\mathbf{t}_1 \in R_q^\kappa is tiny (only κ\kappa polynomials, typically κ≈1\kappa \approx 1–44, i.e. ~1–2 KB!), while t2\mathbf{t}_2 has the exact same dimension ℓ\ell as the message m\mathbf{m} (plus we can even pack/combine both when m\mathbf{m} is short!).

3.4 Linear Homomorphism & "Relaxed Openings"

Like Pedersen commitments, BDLOP is linearly homomorphic (for short scalars c∈Rc \in R): c⋅Com(m;r)=(A1(cr)A2(cr)+cm)=Com(cm;cr).c \cdot \text{Com}(\mathbf{m}; \mathbf{r}) = \begin{pmatrix} A_1 (c\mathbf{r}) \\ A_2 (c\mathbf{r}) + c\mathbf{m} \end{pmatrix} = \text{Com}(c\mathbf{m}; c\mathbf{r}).

And notice a subtle generalization that appears in every lattice proof system (Relaxed Opening): In Module 05, when we run a Schnorr-style proof of opening, the extractor won't give us (r,m)(\mathbf{r}, \mathbf{m}) directly; instead it gives (c,rˉ,mˉ)(c, \bar{\mathbf{r}}, \bar{\mathbf{m}}) such that: c⋅(t1t2)=(A1rˉA2rˉ+cmˉ)(modq)c \cdot \begin{pmatrix} \mathbf{t}_1 \\ \mathbf{t}_2 \end{pmatrix} = \begin{pmatrix} A_1 \bar{\mathbf{r}} \\ A_2 \bar{\mathbf{r}} + c\bar{\mathbf{m}} \end{pmatrix} \pmod q with ∥rˉ∥≤Bext\|\bar{\mathbf{r}}\| \le B_{\text{ext}} and cc short and invertible in RqR_q (or just c=c1−c2c = c_1 - c_2 short)! Even for a relaxed opening, binding still holds as long as ∥c∥op\|c\|_{\text{op}} and ∥rˉ∥\|\bar{\mathbf{r}}\| stay below the M-SIS threshold: if two relaxed openings with the same cc (or multiplied crosswise: c′rˉ−crˉ′c' \bar{\mathbf{r}} - c \bar{\mathbf{r}}') yield mˉ≠mˉ′\bar{\mathbf{m}} \neq \bar{\mathbf{m}}', then A1(c′rˉ−crˉ′)≡0(modq)A_1(c'\bar{\mathbf{r}} - c\bar{\mathbf{r}}') \equiv \mathbf{0} \pmod q breaks M-SIS!


4. Hybrid Mode: Committing to Both Short and Arbitrary Witnesses (ABDLOP)

In real proof systems (like LNP22 / LaBRADOR), a witness often has two parts:

  1. A short vector s1∈Rm1\mathbf{s}_1 \in R^{m_1} (e.g., bits, small integers, or another commitment's opening), AND
  2. An arbitrary vector m∈Rqℓ\mathbf{m} \in R_q^\ell (e.g., field elements mod qq, or blinding/garbage polynomials).

With ABDLOP (Ajtai + BDLOP fused together): (tAtB)=(A1A2B1B2)(s1s2)+(0m)(modq),\begin{pmatrix} \mathbf{t}_A \\ \mathbf{t}_B \end{pmatrix} = \begin{pmatrix} A_1 & A_2 \\ B_1 & B_2 \end{pmatrix} \begin{pmatrix} \mathbf{s}_1 \\ \mathbf{s}_2 \end{pmatrix} + \begin{pmatrix} \mathbf{0} \\ \mathbf{m} \end{pmatrix} \pmod q, where s1\mathbf{s}_1 is the short witness, s2\mathbf{s}_2 is short hiding randomness, and m\mathbf{m} is the arbitrary-norm message! Notice you pay only one Ajtai part tA∈Rqκ\mathbf{t}_A \in R_q^\kappa to bind both s1\mathbf{s}_1 and m\mathbf{m}!


Exercises

  1. BDLOP Arithmetic: Suppose d=2d = 2, q=17q = 17, κ=1\kappa = 1, ℓ=1\ell = 1, m=3m = 3, and A1=(135)A_1 = \begin{pmatrix} 1 & 3 & 5 \end{pmatrix}, A2=(274)A_2 = \begin{pmatrix} 2 & 7 & 4 \end{pmatrix} (constant polynomials for simplicity).
    • Commit to m=12∈R17m = 12 \in R_{17} using randomness r=(1,−1,0)T\mathbf{r} = (1, -1, 0)^T. Compute (t1,t2) mod 17(\mathbf{t}_1, \mathbf{t}_2) \bmod 17.
    • Verify linear homomorphism: compute 2⋅(t1,t2) mod 172 \cdot (\mathbf{t}_1, \mathbf{t}_2) \bmod 17 and check that it equals the commitment to 2m=7(mod17)2m = 7 \pmod{17} under randomness 2r=(2,−2,0)T2\mathbf{r} = (2, -2, 0)^T.
  2. Breaking Unbounded BDLOP: Why does BDLOP binding collapse if the verifier forgets to check that r\mathbf{r} is short? Specifically, given (t1,t2)(\mathbf{t}_1, \mathbf{t}_2) and any target message m′∈Rqℓ\mathbf{m}' \in R_q^\ell, show how an adversary who is allowed an unbounded r′∈Rqm\mathbf{r}' \in R_q^m can always open (t1,t2)(\mathbf{t}_1, \mathbf{t}_2) to m′\mathbf{m}' via linear algebra! (Assume m≥κ+ℓm \ge \kappa + \ell.)
  3. Why m>κ+ℓm > \kappa + \ell in BDLOP HNF: In Section 3.2, we wrote m=κ+ℓ+λm = \kappa + \ell + \lambda. What happens to hiding if λ=0\lambda = 0 (no secret s\mathbf{s})? What happens to binding if κ=0\kappa = 0?

(Solutions in exercise-solutions.md.)

results matching ""

    No results matching ""