4.8 Sublinear Lattice ZKP for Arithmetic Circuits

The work [BBC+18a] achieves sublinear communication complexity in the lattice based ZK argument system for linear relations. More specifically, they can prove knowledge of short pre-images {𝐬i}i∈[1,ℓ] over ℤqv for a linear relation

𝐀𝐒≡𝐓modq,

where A∈ℤqr×v and 𝐓∈ℤqr×ℓ are public, and 𝐒=[𝐬1⁢∣…∣⁢𝐬ℓ]. The trick is to use a challenge matrix 𝐂←r{0,1}ℓ×(λ+2), such that 𝐒𝐂 is still full of short coefficients, but the number of relations shrink from ℓ to λ+2. Applying the same technique in [Lyu09, Lyu12], we achieve zero knowledge.

Ring notation and norms.

Let d=d⁢(λ) be a power of two, and let R=ℤ⁢[X]/(Xd+1), Rq=R/q⁢R, and Rp=R/p⁢R. For f∈Rq, we always take the centered coefficient representative before measuring its size. If this representative is f=∑i=0d−1fi⁢Xi, then fi denotes the coefficient of Xi. Define

‖f‖∞=maxi∈[0,d−1]⁡|fi|,‖f‖2=(∑i=0d−1fi2)1/2.

For 𝐳=(z1,…,zm)∈Rm, define

‖𝐳‖∞=maxj∈[m]⁡‖zj‖∞,‖𝐳‖2=(∑j=1m‖zj‖22)1/2.

Commitment Scheme.

For a commitment scheme Π𝖢𝗈𝗆=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆), let ℳ𝖢𝗈𝗆 denote the message space, and ℛ𝖢𝗈𝗆 denote the randomness space. The setup algorithm outputs a commitment key 𝖼𝗄←𝖲𝖾𝗍𝗎𝗉⁢(1λ,1ℓ), and the commitment algorithm takes 𝐦∈ℳ𝖢𝗈𝗆 and 𝐫∈ℛ𝖢𝗈𝗆 as inputs, and outputs 𝐜←𝖢𝗈𝗆𝖼𝗄⁢(𝐦;𝐫). An opening of 𝐜 is a pair (𝐦,𝐫), and verification recomputes 𝖢𝗈𝗆𝖼𝗄⁢(𝐦;𝐫).

Definition 4.8.1 (Binding).

Π𝖢𝗈𝗆=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆) is computationally binding if for every efficient adversary 𝒜,

Pr⁡[𝖢𝗈𝗆𝖼𝗄⁢(𝐦0;𝐫0)=𝖢𝗈𝗆𝖼𝗄⁢(𝐦1;𝐫1)∧𝐦0≠𝐦1|𝖼𝗄←𝖲𝖾𝗍𝗎𝗉⁢(1λ,1ℓ),(𝐦0,𝐫0,𝐦1,𝐫1)←𝒜⁢(1λ,𝖼𝗄)]≤𝗇𝖾𝗀𝗅⁢(λ),

If the same condition holds for unbounded adversaries, then Π𝖢𝗈𝗆=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆) is statistically binding.

Definition 4.8.2 (Hiding).

Π𝖢𝗈𝗆=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆) is computationally hiding if for every efficient adversary (𝒜0,𝒜1),

|Pr⁡[b=b′|𝖼𝗄←𝖲𝖾𝗍𝗎𝗉⁢(1λ,1ℓ),(𝐦0,𝐦1,𝗌𝗍)←𝒜0⁢(1λ,𝖼𝗄),b←r{0,1},𝐫←ℛ𝖢𝗈𝗆,𝐜b←𝖢𝗈𝗆𝖼𝗄⁢(𝐦b;𝐫),b′←𝒜1⁢(𝗌𝗍,𝐜b)]−12|≤𝗇𝖾𝗀𝗅⁢(λ).

If the same condition holds for unbounded adversaries, then Π𝖢𝗈𝗆=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆) is statistically hiding.

Module-SIS.

The binding property of Ajtai commitments is from the hardness of module-SIS assumption.

Definition 4.8.3 (Module-SIS [LS15]).

Let q=q⁢(λ),m=m⁢(λ),n=n⁢(λ),β=β⁢(λ), and d=d⁢(λ). We say 𝖬𝖲𝖨𝖲n,m,d,q,β holds if for any efficient adversary 𝒜 outputting 𝐳∈Rm, the following holds

Pr⁡[𝐀𝐳≡𝟎modq∧0<‖𝐳‖∞≤β∣𝐀←rRqn×m,𝐳←𝒜⁢(𝐀)]≤𝗇𝖾𝗀𝗅⁢(λ).

When n=1, the assumption specializes to the Ring-SIS assumption [PR06, LM06].

Ajtai Commitment.

We now recall the Ajtai commitment instantiated from module-SIS assumption.

Definition 4.8.4 (Ajtai Commitment [Ajt96]).

Over the above ring, we define the following parameters:

  • •

    ℓ: the message dimension,

  • •

    k: the number of output ring elements.

  • •

    ℳ𝖠𝗃𝗍𝖺𝗂: the message space Rpℓ, where elements of Rp are lifted to Rq by their centered coefficient representatives.

  • •

    ℛ𝖠𝗃𝗍𝖺𝗂: the randomness space Rq2⁢k⁢logp⁡q.

  • •

    𝒟𝖠𝗃𝗍𝖺𝗂: the subgaussian distribution 𝒟σ2⁢k⁢logp⁡q over the randomness space.

  • •

    B𝖠𝗃𝗍𝖺𝗂: the binding space defined as follows,

    B𝖠𝗃𝗍𝖺𝗂={𝐬=[𝐫𝖳∣𝐦𝖳]𝖳∈Rℓ+2⁢k⁢logp⁡q:‖𝐬‖∞≤B}.

We construct Π𝖠𝗃𝗍𝖺𝗂=(𝖲𝖾𝗍𝗎𝗉,𝖢𝗈𝗆) over Rp as follows:

  • •

    𝖲𝖾𝗍𝗎𝗉⁢(1λ,1ℓ): Sample 𝐀1←rRqk×2⁢k⁢logp⁡q and 𝐀2←rRqk×ℓ, and output 𝖼𝗄=𝐀=[𝐀1∣𝐀2].

  • •

    𝖢𝗈𝗆𝖼𝗄⁢(𝐦;𝐫): On input the message 𝐦∈Rpℓ and 𝐫∈Rq2⁢k⁢logp⁡q, output 𝐜=𝐀1⁢𝐫+𝐀2⁢𝐦∈Rqk.

An opening is (𝐦,𝐫), and verification recomputes the commitment.

Lemma 4.8.5.

Ajtai commitment is computationally binding and statistically hiding.

Proof.

Hiding follows from the Leftover Hash Lemma: (𝐀1,𝐀1⁢𝐫) is statistically close to uniformly random, and hence the commitment scheme is statistically hiding. Let n′=k,m′=ℓ+2⁢k⁢logp⁡q, and 2⁢B≤β, so long as 𝖬𝖲𝖨𝖲n′,m′,d,q,β is hard, the commitment scheme is computationally binding. ∎

Amortized Linear Relation Proof.

We now describe the amortized proof for many linear relations over Rq. The public statement consists of matrices 𝐀∈Rqr×v and 𝐓∈Rqr×ℓ, and the witness is 𝐒=[𝐬1⁢∣⋯∣⁢𝐬ℓ]∈Rv×ℓ, where each 𝐬i has ℓ∞-norm upper bounded by a bound B𝗅𝗂𝗇, satisfying 𝐀𝐒≡𝐓modq.

By linearity of the Ajtai commitment definition 4.8.4, the commitments to the compressed columns 𝐒𝐂 can be obtained by applying the same linear combinations to the commitments of the columns of 𝐒.

We begin by describing the “compression lemma” that help establish amortized proof.

Lemma 4.8.6.

Let 𝔾 be an abelian group, and 𝐱=[x1,…,xℓ]𝖳∈𝔾ℓ be nonzero. For 𝐜←r{0,1}ℓ, Pr⁡[⟨𝐜,𝐱⟩=0]≤1/2. Consequently, for 𝐂←r{0,1}ℓ×t, Pr⁡[𝐱𝖳⁢𝐂=𝟎𝖳]≤2−t.

Proof.

Pick i with xi≠0, and fix all cj for j≠i. The two possible sums differ by xi, so at most one of them is zero. The conditional probability is at most 1/2, and averaging over the fixed bits gives the claim. ∎

Immediate by lemma 4.8.6, if 𝐀𝐒′≢𝐓modq, for 𝐂←r{0,1}ℓ×t, Pr⁡[𝐀𝐒′⁢𝐂≡𝐓𝐂modq]≤2−t.

Protocol Construction.

The prover commits to each 𝐬i using the Ajtai commitment definition 4.8.4.

Let 𝒞 be the challenge set, that is {0,1} when R=ℤ, otherwise {0}∪{±Xj}j<d when R=ℤ⁢[X]/(Xd+1).

  • Commit.

    For i∈[1,ℓ], the prover samples 𝐫i←𝒟𝖠𝗃𝗍𝖺𝗂 and sends 𝐜i=𝖢𝗈𝗆𝖼𝗄⁢(𝐬i;𝐫i). Let 𝐂com=[𝐜1⁢∣…∣⁢𝐜ℓ].

  • Challenge.

    The verifier samples 𝐂←r𝒞ℓ×(λ+2).

  • Response.

    The prover computes 𝐘←𝐒𝐂 and the compressed randomness 𝐑=[𝐫1⁢∣…∣⁢𝐫ℓ]⁢𝐂, and sends over (𝐘,𝐑).

  • Verification.

    The verifier checks (𝐘,𝐑) are consistent with the compressed commitments by 𝐂𝖢𝗈𝗆⁢𝐂=𝖢𝗈𝗆𝖼𝗄⁢(𝐘;𝐑).

Completeness is immediate.

Special Knowledge Soundness.

We now show the (special) knowledge soundness of an accepting prover.

Here, v is the witness dimension for each relation, t=λ+2, and ℓ is the number of relations being batched. Fix a statement (𝐀,𝐓) and a first message 𝐂𝖢𝗈𝗆.

Theorem 4.8.7.

If 𝒫∗ responds to a random challenge 𝐂←r𝒞ℓ×t, and convinces the verifier with probability ε≥2−λ, then the extractor should recover a matrix 𝐒∈Rv×ℓ such that 𝐀𝐒≡c⁢𝐓modq202020 When R=ℤ, c=1; otherwise when R is a polynomial ring, c=2. , together with extracted randomness, open the commitments in 𝐂𝖢𝗈𝗆, and the extracted columns are short. The extractor runs in expected time 𝗉𝗈𝗅𝗒⁢(λ,1/ε).

We start by describing how to extract a column of the witness (𝐬i,𝐫i), which can be generalized to all columns. For an extractor ℰ𝒫∗, it rewinds the prover to its first message 𝐂𝖢𝗈𝗆 (so as to pin down the prover randomness), together with all rows of the challenge 𝐂∈𝒞ℓ×t. It then resamples only the ith row of 𝐂, yielding 𝐂′.

We now introduce a helpful lemma via probabilistic method related to the extraction process.

Lemma 4.8.8 (Heavy Row Lemma [Dam10]).

Let 𝐇∈{0,1}n×m has density at least ε, namely at least ε⁢n⁢m entries are 1. We say that a row a∈[1,n] is heavy, if there are more than ε⁢m/2 entries are 1, namely the density in this row is at least ε/2. Then a uniformly random 1-entry of 𝐇 lies in a heavy row with probability at least 1/2.

Proof.

The total number of 1-entries in 𝐇 is at least ε⁢m⁢n, while the number of 1-entries in non-heavy rows is at most ε⁢m⁢n/2. Hence, the probability of an 1-entry lying in a light row is at most 1/2, and an 1-entry lying in a heavy row is at least 1/2. ∎

Therefore, consider building up a matrix 𝐇 over {0,1} as follows. The rows are indexed by the prover randomness and by all challenge rows except the ith row. The columns are indexed by the possible ith row challenges 𝜶i∈𝒞t. The entry is 1 if 𝒫∗ gives an accepting response on the corresponding full challenge matrix, and 0 otherwise.

The density of 𝐇 is at least ε as the prover convinces the verifier with probability at least ε. Hence, by lemma 4.8.8, conditioned on a random challenge is accepting, with probability at least 1/2 the corresponding row of 𝐇 is heavy. Thus, after the extractor finds one accepting transcript in a heavy row, resampling only the ith row in 𝐂 gives another accepting transcript with probability at least ε/2.

Immediately, this gives a randomized algorithm for the extractor to extract a column of witness (𝐬i,𝐫i) in expected polynomial time. First, the extractor samples accepting (𝐂,𝐘,𝐑) on the first 𝐂𝖢𝗈𝗆. Then, fix the prover randomness and 𝐂 except the ith row. Resample the ith row independently up to N=O⁢(λ/ε) times. If one obtains an accepting (𝐂′,𝐘′,𝐑′) whose ith row differs from that of 𝐂, continue with the extraction below. Otherwise, abort and restart.

The runtime analysis is similar to the expectation of a geometrically distributed random variable. Similar to the relaxation in lemma 1.5.36, we have

Pr⁡[abort] =Pr⁡[abort∣ith⁢ row of ⁢𝐂⁢ is heavy for ⁢𝐇]⋅Pr⁡[ith⁢ row of ⁢𝐂⁢ is heavy for ⁢𝐇]
+Pr⁡[abort∣ith⁢ row of ⁢𝐂⁢ is light for ⁢𝐇]⋅Pr⁡[ith⁢ row of ⁢𝐂⁢ is light for ⁢𝐇]
≤Pr⁡[abort∣ith⁢ row of ⁢𝐂⁢ is heavy for ⁢𝐇]+Pr⁡[ith⁢ row of ⁢𝐂⁢ is light for ⁢𝐇].

The second term is at most 1/2 by the lemma 4.8.8. The first term is upper bounded as follows. Since the ith row of 𝐂 is heavy on 𝐇, the probability of choosing a rejecting challenge is at most 1−ε/2, also excluding the first accepting 𝐂, then the rejecting probability is at most 1−ε/2+|𝒞|−t. Repeating N times, the first term is at most (1−ε/2+|𝒞|−t)N. Thus, the aborting probability is at most

12+(1−ε2+1|𝒞|t)N.

If ε>2−λ, then 1−ε/2+|𝒞|−t>1−ε/4>exp⁡(−ε/4), which leads to the final upper bound being 1/2+2−λ. Since each run takes O⁢(N) time, then extractor runs in expected 𝗉𝗈𝗅𝗒⁢(λ,1/ε).

Suppose the extractor obtains two accepting transcripts (𝐂,𝐘,𝐑) and (𝐂′,𝐘′,𝐑′) whose challenges differ only on the ith row, and differ nontrivially in that row. Write 𝜶i,𝜶i′∈𝒞t for the two ith rows and let

Δ⁢𝐂=𝐂−𝐂′,Δ⁢𝐘=𝐘−𝐘′,Δ⁢𝐑=𝐑−𝐑′,

then the commitment openings satisfy

𝐂𝖢𝗈𝗆⋅Δ⁢𝐂=𝖢𝗈𝗆𝖼𝗄⁢(Δ⁢𝐘;Δ⁢𝐑).

Choose a coordinate j such that α=(𝜶i−𝜶i′)j∈𝒞−𝒞, then the jth column of the first equation gives

𝖢𝗈𝗆𝖼𝗄⁢(Δ⁢𝐲j;Δ⁢𝐫j)≡𝐀1⋅Δ⁢𝐫j+𝐀2⋅Δ⁢𝐲j≡α⁢𝐜imodq,

so (Δ⁢𝐲j,Δ⁢𝐫j) is an opening of the scaled commitment α⁢𝐜i.

By the challenge-set property, there exists a short g∈R such that g⁢α=c. Hence

𝖢𝗈𝗆𝖼𝗄⁢(g⋅Δ⁢𝐲j;g⋅Δ⁢𝐫j)≡c⁢𝐜imodq.

The extractor therefore obtains the ith scaled opening, and repeating the same row-local procedure for every i∈[1,ℓ] yields openings of all columns of c⁢𝐂𝖢𝗈𝗆. Shortness follows from the response norm checks in accepting transcripts; the exact checks and constants are accounted for in the norm-growth analysis.