Module 05: Sigma Protocols & Fiat-Shamir with Aborts

1. The Bridge from Schnorr & IPA

In EC-based protocols (Schnorr, Pedersen opening, IPA), proving knowledge of a secret s\mathbf{s} such that t=As\mathbf{t} = A\mathbf{s} (or T=sGT = s G) takes three clean steps:

  1. Commit: Prover samples uniform mask y←Fpm\mathbf{y} \leftarrow \mathbb{F}_p^m, sends w=Ay\mathbf{w} = A\mathbf{y}.
  2. Challenge: Verifier sends random c←Fpc \leftarrow \mathbb{F}_p.
  3. Response: Prover sends z=y+cs mod p\mathbf{z} = \mathbf{y} + c\mathbf{s} \bmod p.
  4. Verify: Az=?w+ctA\mathbf{z} \stackrel{?}{=} \mathbf{w} + c\mathbf{t}.

Why is EC Schnorr zero-knowledge? Because y\mathbf{y} is uniform over the finite group Fpm\mathbb{F}_p^m, shifting it by cs(modp)c\mathbf{s} \pmod p produces a distribution that is still uniform over Fpm\mathbb{F}_p^m—completely independent of s\mathbf{s}!

Why is EC Schnorr special sound? Given two accepting transcripts (c1,z1)(c_1, \mathbf{z}_1) and (c2,z2)(c_2, \mathbf{z}_2) with c1≠c2c_1 \neq c_2: A(z1−z2)=(c1−c2)t  ⟹  s∗=(c1−c2)−1(z1−z2)(modp)A(\mathbf{z}_1 - \mathbf{z}_2) = (c_1 - c_2)\mathbf{t} \implies \mathbf{s}^* = (c_1 - c_2)^{-1}(\mathbf{z}_1 - \mathbf{z}_2) \pmod p satisfies As∗=tA\mathbf{s}^* = \mathbf{t}.

Now try doing exact Schnorr over a lattice! Let t=As mod q\mathbf{t} = A\mathbf{s} \bmod q where s∈Rm\mathbf{s} \in R^m is short (∥s∥∞≤β\|\mathbf{s}\|_\infty \le \beta). If you sample y\mathbf{y} uniformly mod qq, then z=y+cs mod q\mathbf{z} = \mathbf{y} + c\mathbf{s} \bmod q is NOT short, so the verifier rejects—or if the verifier doesn't check ∥z∥\|\mathbf{z}\|, anyone can solve Az=w+ct mod qA\mathbf{z} = \mathbf{w} + c\mathbf{t} \bmod q with Gaussian elimination!

So y\mathbf{y} MUST be short! And once y\mathbf{y} is short, EVERYTHING changes:

  1. z=y+cs\mathbf{z} = \mathbf{y} + c\mathbf{s} leaks s\mathbf{s}!
  2. (c1−c2)(c_1 - c_2) might not be invertible in RqR_q, and even if it is, (c1−c2)−1(c_1 - c_2)^{-1} is not short!

Let's solve both problems cleanly. This is Lyubashevsky's celebrated "Fiat-Shamir with Aborts" paradigm (2009 / 2012).


2. Why Naive Short Schnorr Leaks the Secret

Suppose our secret is a single scalar s∈{−1,0,1}s \in \{-1, 0, 1\}, the challenge is c∈{−1,1}c \in \{-1, 1\}, and we sample mask yy uniformly from {−10,−9,…,10}\{-10, -9, \dots, 10\} (without reducing mod qq, since 10≪q10 \ll q). Then z=y+csz = y + c s lies in [−11,11][-11, 11]. Watch what happens when a verifier sees z=11z = 11 and c=1c = 1:

  • Since y≤10y \le 10, y+s=11y + s = 11 forces y=10y = 10 and s=+1s = +1!
  • Even for interior values, the average of zz given c=1c = 1 is E[z∣c=1]=s\mathbb{E}[z \mid c=1] = s, and the support of zz shifts by c⋅sc \cdot s! Over ∼100\sim 100 signatures or transcripts, an attacker simply averages cizic_i z_i or intersects the bounding boxes to recover s\mathbf{s} completely!

(Run cargo run --bin lab03_rejection_sampling inside labs/ to watch this leakage attack recover a secret in seconds!)


3. Rejection Sampling (Lyubashevsky 2009 / 2012)

How do you make the distribution of z=y+cs\mathbf{z} = \mathbf{y} + c\mathbf{s} completely independent of the secret shift v=cs\mathbf{v} = c\mathbf{s}?

Answer: Sample y\mathbf{y} from a distribution gg, compute z=y+v\mathbf{z} = \mathbf{y} + \mathbf{v}, and ONLY output z\mathbf{z} with a carefully chosen probability; otherwise ABORT and restart!

Think of it geometrically: you have a shifted distribution (centered at v\mathbf{v}) and a target distribution ff (centered at 0\mathbf{0}). As long as f(z)≤M⋅g(z−v)f(\mathbf{z}) \le M \cdot g(\mathbf{z} - \mathbf{v}) everywhere (for some constant M≥1M \ge 1), if you accept z\mathbf{z} with probability paccept(z)=f(z)M⋅g(z−v)∈[0,1],p_{\text{accept}}(\mathbf{z}) = \frac{f(\mathbf{z})}{M \cdot g(\mathbf{z} - \mathbf{v})} \in [0, 1], then the output distribution conditioned on accepting is exact f(z)f(\mathbf{z})—with zero dependence on v=cs\mathbf{v} = c\mathbf{s}! And the overall acceptance rate is 1/M1/M!

There are two classic choices for (g,f)(g, f) in proof systems:

3.1 Choice 1: Uniform Box Rejection Sampling (Used in Dilithium)

Let ∥v∥∞≤βshift\|\mathbf{v}\|_\infty \le \beta_{\text{shift}} (e.g., βshift=max⁡c∈C∥cs∥∞\beta_{\text{shift}} = \max_{c \in \mathcal{C}} \|c\mathbf{s}\|_\infty).

  • Sample y\mathbf{y} uniformly from the hypercube [−γ1+1,γ1]N[-\gamma_1 + 1, \gamma_1]^N (where N=m⋅dN = m \cdot d is the total number of integer coefficients).
  • Compute z=y+v\mathbf{z} = \mathbf{y} + \mathbf{v}.
  • Rule: If ∥z∥∞≤γ1−βshift\|\mathbf{z}\|_\infty \le \gamma_1 - \beta_{\text{shift}}, accept and output z\mathbf{z}; otherwise abort and restart from Step 1 (fresh y\mathbf{y}!).

Let's check why this is perfectly zero-knowledge! For ANY z\mathbf{z} inside the inner box [−(γ1−βshift),  γ1−βshift]N[-(\gamma_1 - \beta_{\text{shift}}), \; \gamma_1 - \beta_{\text{shift}}]^N: Notice that z−v∈[−γ1,γ1]N\mathbf{z} - \mathbf{v} \in [-\gamma_1, \gamma_1]^N for every valid shift ∥v∥∞≤βshift\|\mathbf{v}\|_\infty \le \beta_{\text{shift}}! So every valid z\mathbf{z} inside the inner box has exactly one preimage y=z−v\mathbf{y} = \mathbf{z} - \mathbf{v} in the outer box, with uniform probability! Thus, conditioned on not aborting, z\mathbf{z} is uniformly distributed on the inner box, completely independent of s\mathbf{s}!

Wait—what is the acceptance probability? Each of the NN coordinates survives with probability ≈1−βshiftγ1\approx 1 - \frac{\beta_{\text{shift}}}{\gamma_1}. Across NN coordinates: Pr⁡[accept]≈(1−βshiftγ1)N≈e−Nβshift/γ1.\Pr[\text{accept}] \approx \left(1 - \frac{\beta_{\text{shift}}}{\gamma_1}\right)^N \approx e^{-N \beta_{\text{shift}} / \gamma_1}. To keep Pr⁡[accept]≥1/e≈37%\Pr[\text{accept}] \ge 1/e \approx 37\% (only ~2.7 retries on average!), we need: γ1≈N⋅βshift!\gamma_1 \approx N \cdot \beta_{\text{shift}}! Look at that factor of NN (dimension)! Because γ1\gamma_1 scales linearly with NN, uniform box rejection gives ℓ2\ell_2-norm ∥z∥2≈N1.5βshift\|\mathbf{z}\|_2 \approx N^{1.5} \beta_{\text{shift}}—which is okay for signatures like Dilithium, but too big for compact lattice ZKPs!

3.2 Choice 2: Discrete Gaussian Rejection Sampling (Used in BDLOP / LNP22 / LaBRADOR)

Can we replace the linear NN factor with N\sqrt{N} (or even independent of NN)? Yes—using Discrete Gaussians!

Let DσND_\sigma^N be the discrete Gaussian distribution over ZN\mathbb{Z}^N with standard deviation σ\sigma (each coordinate xx sampled with probability proportional to exp⁡(−x2/(2σ2))\exp(-x^2 / (2\sigma^2))).

  • Set y←DσN\mathbf{y} \leftarrow D_\sigma^N and z=y+v\mathbf{z} = \mathbf{y} + \mathbf{v} (where ∥v∥2≤T\|\mathbf{v}\|_2 \le T).
  • Accept z\mathbf{z} with probability: paccept=min⁡(1,  DσN(z)M⋅DσN(z−v))=1Mexp⁡(−2⟨z,v⟩+∥v∥222σ2),p_{\text{accept}} = \min\left(1, \; \frac{D_\sigma^N(\mathbf{z})}{M \cdot D_\sigma^N(\mathbf{z} - \mathbf{v})}\right) = \frac{1}{M} \exp\left(\frac{-2\langle \mathbf{z}, \mathbf{v} \rangle + \|\mathbf{v}\|_2^2}{2\sigma^2}\right), where we choose M=exp⁡(12Tσ+T22σ2)M = \exp\left(\frac{12 T}{\sigma} + \frac{T^2}{2\sigma^2}\right) (or tighter: M≈e1.5M \approx e^{1.5} if σ≈11⋅T\sigma \approx 11 \cdot T!).

Look at what the exponent depends on:

  • By Cauchy-Schwarz / subgaussian tail bounds, with overwhelming probability ∣⟨z,v⟩∣≤12σ∥v∥2≤12σT|\langle \mathbf{z}, \mathbf{v} \rangle| \le 12 \sigma \|\mathbf{v}\|_2 \le 12 \sigma T—completely independent of the dimension NN!
  • Therefore, setting σ=α⋅T\sigma = \alpha \cdot T (e.g., α=11\alpha = 11 gives M≈3M \approx 3, i.e. ~33% acceptance!) works for ANY dimension NN (whether N=100N = 100 or N=106N = 10^6)!
  • And a vector z←DσN\mathbf{z} \leftarrow D_\sigma^N has ℓ2\ell_2 norm ∥z∥2≈σN=O(N⋅∥cs∥2)\|\mathbf{z}\|_2 \approx \sigma \sqrt{N} = O(\sqrt{N} \cdot \|c\mathbf{s}\|_2), saving a huge factor of N\sqrt{N} over uniform rejection!

(Bonus trick: Bimodal Gaussian / Lyubashevsky–Ducas (BLISS) flips a random sign b∈{−1,+1}b \in \{-1, +1\} on v\mathbf{v} and uses 1Mcosh⁡(⟨z,v⟩/σ2)\frac{1}{M \cosh(\langle \mathbf{z}, \mathbf{v} \rangle / \sigma^2)}, eliminating the cross-term 12T/σ12 T/\sigma so σ\sigma only needs to be ≈0.67⋅T\approx 0.67 \cdot T!)


4. Zero-Knowledge Simulator & Why "Aborts" Are Safe

Wait: in an interactive protocol, if the prover aborts and restarts, doesn't that break completeness or ZK?

  • In interactive mode: Abort just means the prover sends a special symbol ⊥\bot (or restarts before sending w\mathbf{w}? Wait: in Fiat-Shamir non-interactive proofs, the prover simply runs the loop locally with fresh y\mathbf{y} and hashes H(w)H(\mathbf{w}) until an iteration does not abort, then outputs the single winning (w,z)(\mathbf{w}, \mathbf{z})!).
  • What about an interactive simulator? To simulate a transcript without knowing s\mathbf{s}: with probability 1−1/M1 - 1/M, the simulator outputs ⊥\bot (abort); with probability 1/M1/M, it samples z←f\mathbf{z} \leftarrow f directly (e.g., DσND_\sigma^N), samples c←Cc \leftarrow \mathcal{C}, and sets w=Az−ct mod q\mathbf{w} = A\mathbf{z} - c\mathbf{t} \bmod q!
  • Because the real prover's accepted z\mathbf{z} is distributed identically (or within 2−λ2^{-\lambda} statistical distance) to ff, and w\mathbf{w} is uniquely determined by Az−ctA\mathbf{z} - c\mathbf{t}, the simulated transcript distribution matches the real one!
  • (Subtlety for interactive 3-round Sigma protocols: If the adversary's challenge cc is fixed before seeing w\mathbf{w}, wait—in standard ZK, the verifier can pick cc depending on w\mathbf{w}! If the abort decision depended on cc, could aborting depend on w\mathbf{w}? Notice that MM is chosen so that the abort probability 1/M1/M is constant for ALL v=cs\mathbf{v} = c\mathbf{s}, meaning whether the prover aborts is statistically independent of w\mathbf{w} and cc! That's why MM must be universal for the worst-case bound ∥v∥2≤T\|\mathbf{v}\|_2 \le T!)*

5. Relaxed Soundness ("Soundness with Slack")

Now let's examine extraction (special soundness) in the lattice Sigma protocol!

Suppose the verifier checks:

  1. Az≡w+ct(modq)A\mathbf{z} \equiv \mathbf{w} + c\mathbf{t} \pmod q, AND
  2. ∥z∥2≤Bz\|\mathbf{z}\|_2 \le B_z (where Bz≈σNB_z \approx \sigma \sqrt{N} for an honest prover).

Assume a cheating prover answers two distinct challenges c1≠c2∈Cc_1 \neq c_2 \in \mathcal{C} for the same commitment w\mathbf{w}: Az1≡w+c1t(modq),Az2≡w+c2t(modq).A\mathbf{z}_1 \equiv \mathbf{w} + c_1 \mathbf{t} \pmod q, \qquad A\mathbf{z}_2 \equiv \mathbf{w} + c_2 \mathbf{t} \pmod q. Subtracting the two equations: A(z1−z2)≡(c1−c2)t(modq).A(\mathbf{z}_1 - \mathbf{z}_2) \equiv (c_1 - c_2)\mathbf{t} \pmod q.

Here is the huge fork in the road compared to EC Schnorr: Let cˉ=c1−c2≠0\bar{c} = c_1 - c_2 \neq 0, and zˉ=z1−z2\bar{\mathbf{z}} = \mathbf{z}_1 - \mathbf{z}_2 (so ∥zˉ∥2≤2Bz\|\bar{\mathbf{z}}\|_2 \le 2 B_z). Can we divide by cˉ\bar{c} to recover s\mathbf{s}?

  • Problem 1: cˉ\bar{c} might not even be invertible in RqR_q (if RqR_q splits via CRT into small fields and cˉ\bar{c} hits zero in one slot)!
  • Problem 2: Even if cˉ\bar{c} IS invertible mod qq, its inverse cˉ−1 mod q\bar{c}^{-1} \bmod q is huge (essentially uniformly random in [−q/2,q/2)d[-q/2, q/2)^d)! So cˉ−1zˉ mod q\bar{c}^{-1} \bar{\mathbf{z}} \bmod q is NOT short—it is NOT a valid short opening for t\mathbf{t}!

So what does the extractor get? It extracts a relaxed opening (cˉ,zˉ)(\bar{c}, \bar{\mathbf{z}}): Azˉ≡cˉ⋅t(modq),∥zˉ∥2≤2Bz,cˉ=c1−c2∈C−C∖{0}.A \bar{\mathbf{z}} \equiv \bar{c} \cdot \mathbf{t} \pmod q, \qquad \|\bar{\mathbf{z}}\|_2 \le 2 B_z, \qquad \bar{c} = c_1 - c_2 \in \mathcal{C} - \mathcal{C} \setminus \{0\}.

Wait: is a relaxed opening enough for soundness?! Look! Suppose the prover is actually honest? No, suppose we have a commitment t\mathbf{t} and want to prove binding (two extractions give (cˉ,zˉ)(\bar{c}, \bar{\mathbf{z}}) and (cˉ′,zˉ′)(\bar{c}', \bar{\mathbf{z}}') for different underlying messages, or we want a short witness for Ax=tA\mathbf{x} = \mathbf{t}):

  1. If t=0\mathbf{t} = \mathbf{0} (e.g., proving knowledge of a short nonzero SIS preimage), then Azˉ≡0(modq)A\bar{\mathbf{z}} \equiv \mathbf{0} \pmod q directly gives a short vector of norm 2Bz2B_z!
  2. If t\mathbf{t} is a BDLOP commitment (t1,t2)(\mathbf{t}_1, \mathbf{t}_2) and cˉ\bar{c} is invertible in RqR_q: Look at the unique message mˉ=t2−cˉ−1A2rˉ(modq)\bar{\mathbf{m}} = \mathbf{t}_2 - \bar{c}^{-1} A_2 \bar{\mathbf{r}} \pmod q! Notice mˉ\bar{\mathbf{m}} does not need to be short—only rˉ\bar{\mathbf{r}} needs to be short! And we can prove that rˉ\bar{\mathbf{r}} (with norm 2Bz2B_z) and cˉ\bar{c} still guarantee binding as long as 2∥cˉ∥op⋅(2Bz)<βSIS2\|\bar{c}\|_{\text{op}} \cdot (2 B_z) < \beta_{\text{SIS}}!

The ratio between:

  • the honest witness norm ∥s∥2\|\mathbf{s}\|_2, and
  • the extracted witness norm ∥zˉ∥2\|\bar{\mathbf{z}}\|_2 (plus multiplication by cˉ\bar{c})

is called the soundness slack (often γslack=O~(N⋅∥c∥op)\gamma_{\text{slack}} = \tilde{O}(\sqrt{N} \cdot \|c\|_{\text{op}}))! This is why lattice parameters must satisfy a slack gap: Honest norm β  ≪  Extracted slack norm βext  ≪  M-SIS hardness bound βSIS  ≪  q.\text{Honest norm } \beta \;\ll\; \text{Extracted slack norm } \beta_{\text{ext}} \;\ll\; \text{M-SIS hardness bound } \beta_{\text{SIS}} \;\ll\; q.

(In Module 06, we'll learn how modern schemes like LNP22 eliminate slack on the message s1\mathbf{s}_1 itself when exact shortness ∥s1∥∞≤B\|\mathbf{s}_1\|_\infty \le B is required!)


6. Designing the Challenge Space C\mathcal{C}

What properties do we need from the challenge set C⊂R\mathcal{C} \subset R?

  1. Large enough: ∣C∣≥2128|\mathcal{C}| \ge 2^{128} (so 1 challenge gives 128-bit soundness, or e.g. ∣C∣≥264|\mathcal{C}| \ge 2^{64} repeated twice).
  2. Short & sparse: Small operator norm ∥c∥op\|c\|_{\text{op}} (and small ∥c∥1,∥c∥2\|c\|_1, \|c\|_2) so rejection sampling σ≈11∥cs∥2\sigma \approx 11 \|c\mathbf{s}\|_2 stays tight and slack stays small!
  3. Invertible differences: For ALL distinct c1,c2∈Cc_1, c_2 \in \mathcal{C}, c1−c2c_1 - c_2 is invertible in RqR_q!

How do we guarantee property (3)?

Theorem (Lyubashevsky–Seiler, 2018)

Suppose qq is a prime such that Xd+1X^d + 1 splits modulo qq into kk irreducible factors of degree d/kd/k (where kk is a power of 2, e.g., k=2k = 2 or k=4k = 4, i.e. q≡2k+1(mod4k)q \equiv 2k + 1 \pmod{4k}). Then any nonzero polynomial u∈Ru \in R satisfying 0<∥u∥∞<1kq1/k(or ∥u∥2<q1/k roughly)0 < \|u\|_\infty < \frac{1}{\sqrt{k}} q^{1/k} \quad (\text{or } \|u\|_2 < q^{1/k} \text{ roughly}) is invertible in RqR_q!

Why? (Intuition using Module 01's norms!): Think of the ideal (fj(X),q)⊂R(f_j(X), q) \subset R corresponding to one irreducible factor fj(X)f_j(X) of degree d/kd/k. As a Z\mathbb{Z}-lattice of rank dd, this ideal has determinant qd/kq^{d/k}! By the geometry of numbers (specifically properties of cyclotomic ideals), every nonzero polynomial in that ideal has norm at least ≈q1/k\approx q^{1/k}! So if u=c1−c2u = c_1 - c_2 is nonzero and has coefficients strictly smaller than 1kq1/k\frac{1}{\sqrt{k}} q^{1/k}, uu cannot be divisible by any factor fj(X) mod qf_j(X) \bmod q—meaning every CRT slot of uu is nonzero, so uu is invertible in RqR_q!

Concrete Example (LNP22 / Dilithium style):

  • Set d=64d = 64, k=2k = 2 (so q≡5(mod8)q \equiv 5 \pmod 8, e.g. q≈232q \approx 2^{32}).
  • Threshold: 12q1/2≈215.5≈46,000\frac{1}{\sqrt{2}} q^{1/2} \approx 2^{15.5} \approx 46{,}000.
  • Choose C={c∈R:∥c∥∞≤2,  ∥c∥1≤ω}\mathcal{C} = \{ c \in R : \|c\|_\infty \le 2, \; \|c\|_1 \le \omega \} (say ω=20\omega = 20 nonzero coefficients in {−2,−1,0,1,2}\{-2,-1,0,1,2\} or ternary {−1,0,1}\{-1,0,1\} with weight 30). Wait: how many ternary polynomials of degree 64 have Hamming weight 24? (6424)⋅224≈259⋅224=283\binom{64}{24} \cdot 2^{24} \approx 2^{59} \cdot 2^{24} = 2^{83} (or weight 32 gives (6432)232≈292\binom{64}{32} 2^{32} \approx 2^{92}; with coefficients in {−2,−1,0,1,2}\{-2,-1,0,1,2\} easily >2128> 2^{128}!).
  • Every difference c1−c2c_1 - c_2 has ∥c1−c2∥∞≤4≪46,000\|c_1 - c_2\|_\infty \le 4 \ll 46{,}000, so every nonzero difference is 100% guaranteed invertible in RqR_q!

7. Summary: The Complete Lattice Sigma Protocol for Linear Relations

To prove knowledge of a short s\mathbf{s} satisfying As≡t(modq)A\mathbf{s} \equiv \mathbf{t} \pmod q with ∥s∥2≤β\|\mathbf{s}\|_2 \le \beta:

  1. Prover: Samples y←DσN\mathbf{y} \leftarrow D_\sigma^N, computes w=Ay mod q\mathbf{w} = A\mathbf{y} \bmod q, sends w\mathbf{w}.
  2. Verifier: Sends challenge c←Cc \leftarrow \mathcal{C} (with invertible differences and small ∥c∥op\|c\|_{\text{op}}).
  3. Prover: Computes z=y+cs\mathbf{z} = \mathbf{y} + c\mathbf{s}. Runs rejection sampling with parameter MM (abort & restart if rejected). Sends z\mathbf{z}.
  4. Verifier: Checks:
    • Az≡w+ct(modq)A\mathbf{z} \equiv \mathbf{w} + c\mathbf{t} \pmod q, AND
    • ∥z∥2≤Bz\|\mathbf{z}\|_2 \le B_z (typically Bz=σ2NB_z = \sigma \sqrt{2N} or 1.2σN1.2 \sigma \sqrt{N}).

This gives:

  • Zero-Knowledge via Discrete Gaussian rejection sampling.
  • Relaxed Soundness: Extracts short zˉ\bar{\mathbf{z}} and invertible cˉ=c1−c2\bar{c} = c_1 - c_2 with Azˉ≡cˉt(modq)A\bar{\mathbf{z}} \equiv \bar{c}\mathbf{t} \pmod q.

Next up in Module 06: What if we need exact shortness (no slack!) AND non-linear (quadratic / R1CS / Plonk) constraints?


Exercises

  1. Leakage Math: Suppose s∈{0,1}s \in \{0, 1\}, c∈{0,1}c \in \{0, 1\}, and y←{−5,…,5}y \leftarrow \{-5, \dots, 5\} uniformly. Compute E[z∣c=1]\mathbb{E}[z \mid c = 1] where z=y+csz = y + c s. How many transcripts with c=1c = 1 do you expect until an adversary sees z=6z = 6 (if s=1s = 1) or z=−5z = -5 (if s=0s = 0)?
  2. Uniform Box Acceptance Probability: You want to run uniform box rejection sampling on N=1000N = 1000 coefficients where ∥cs∥∞≤20\|c\mathbf{s}\|_\infty \le 20. How big must γ1\gamma_1 be to achieve an acceptance probability of at least 1/e≈36.8%1/e \approx 36.8\%? What is the resulting ℓ∞\ell_\infty bound on z\mathbf{z}?
  3. Invertibility Bound: Suppose d=128d = 128 and q=232−3q = 2^{32} - 3? Wait: check q≡5(mod8)q \equiv 5 \pmod 8 (e.g., q=4294967293≡5(mod8)q = 4294967293 \equiv 5 \pmod 8 if prime, or any prime q≈232q \approx 2^{32} with q≡5(mod8)q \equiv 5 \pmod 8, so k=2k = 2). Using Lyubashevsky–Seiler's bound ∥u∥∞<q1/2/2\|u\|_\infty < q^{1/2}/\sqrt{2}, if challenges have coefficients in {−1,0,1}\{-1, 0, 1\}, could c1−c2c_1 - c_2 ever fail to be invertible? What if qq had been a fully-splitting prime (k=128k = 128, q≡1(mod256)q \equiv 1 \pmod{256})?
  4. Hands-on Lab (Rust + Arkworks): Run cargo run --bin lab03_rejection_sampling inside labs/ (lab03_rejection_sampling.rs) to observe:
    • Naive Schnorr leakage recovering a secret vector s\mathbf{s} from averages/outliers, and
    • Rejection sampling completely erasing the correlation between z\mathbf{z} and s\mathbf{s}!

(Solutions in exercise-solutions.md.)

results matching ""

    No results matching ""