I looked at the security bound from the post a bit more. The post leaves open if this bound, which is quite loose, is a proof artifact and if it can be improved. In particular, a natural thing to ask is if one can have a tighter proof, e.g., one improving the \sqrt{(Q+2)\cdot \epsilon'_{\mathsf{pb}}} term to something like \epsilon'_{\mathsf{pb}}.
Here I want to share some argument for why this might not be possible, at least not without opening up the vector commitment, i.e., using more than position-binding. For that, let me sketch a (contrived!) example of a vector commitment with \lambda bits of security, for which code-binding of the scheme can be broken with probability about T\sqrt{Q}/2^{\lambda}.
Importantly: this only shows that using position-binding alone in a black-box way, one cannot get a better dependence on Q and the position-binding error. It only applies to this particular abstract construction. It does not show any attack against a real scheme. It does not rule out improving the dependence on the checker soundness error \delta. But the latter is less relevant as we can always use two challenges or go to a larger extension field to make \delta sufficiently small.
Notation and (Contrived) Building Blocks
Let me describe an instantiation of the abstract scheme from the post. For this instantiation, I will describe an attack below. The instantiation of the vector commitment is contrived, but as a black-box proof must also work for this instantiation, it tells us something about what a black-box proof can do and what it cannot.
Code and checker. We assume we use the Reed–Solomon code and the checker from the design post, with dimension k and length 2k, and one row for simplicity.
For a vector c, let A interpolate its symbols at even positions and B those at odd positions, and set D_c(X) = A(X) - B(X/\omega), a polynomial of degree less than k. Recall that c is a codeword if and only if D_c = 0, and c passes the check for challenge L if and only if D_c(L) = 0.
Funny contrived hash. Fix Q = 2^q < k with q even, and let z = \lambda - q/2. Let h (with 2\lambda-bit output) and G (with at least z+q output bits) be ordinary hash functions (say modeled as random oracles in the analysis), and let e_1,\dots,e_Q be fixed, public, distinct (2\lambda+1)-bit strings that all start with a 1-bit. Define h'(x) as follows:
-
compute g = G(x);
-
if the first z bits of g are zero, read the next q bits of g as an index j and output e_j;
-
else, output 0 \| h(x).
That is, h' is the same as h (with a 0-bit prepended), but in some special case depending on G it outputs one of the fixed images. The leading bit makes sure that the two cases can never output the same value.
It is still \lambda-bit collision-resistant. To see this, consider T evaluations of h'. We do a union bound over the at most T^2/2 pairs of distinct inputs:
-
Case 0: One input takes the “else” branch and the other does not. Then their outputs never collide due to the first bit, by construction.
-
Case 1: both take the “else” branch, they collide with the usual 2^{-2\lambda} probability.
-
Case 2: both inputs map to some e_j. Note that then they must both hash to z leading zero bits and get the same index j via G. The probability of this is (2^{-z})^2 \cdot (1/Q) = 2^{-2\lambda}.
In total, this gives the desired bound of T^2/2^{2\lambda} for collisions.
Vector commitment. Commit to a vector by hashing all of it with h'. An opening is the vector itself. The verifier checks that it is a hash preimage and has the right symbol at the position in question. This is not succinct, but it satisfies the assumptions from the post (in particular position-binding because h' is collision-resistant), and we can use it for our counterexample.
Non-interactive argument / SNARK. For our counterexample, we can use the trivial non-interactive argument in which the proof is the witness itself and the verifier directly checks the relation. This gives perfect knowledge soundness and avoids the issue of relativized succinct arguments, as we model G and h as random oracles independent of H.
Attack for this contrived instantiation
Here is the attack against code-binding. Using the algorithm below, the attacker finds a commitment and a non-codeword preimage of the commitment which passes its code check. The attacker knows the preimage of the commitment so it can compute the proof and all openings honestly. But as it is a non-codeword, it can then break code-binding. Here is the algorithm, parameterized by a search budget T < |\mathbb{F}|:
-
Query L_j = H(e_j) for all j = 1,\dots,Q.
-
Let Z(X) = \prod_j (X - L_j), which has degree Q < k. Let c_1 be the vector with D_{c_1} = Z, and let c_s = s\\cdot c_1 for non-zero field elements s. Then D_{c_s} = s\cdot Z \neq 0, so every c_s is a non-codeword, and D_{c_s}(L_j) = 0, so every c_s passes the check for all Q challenges at once.
-
For T distinct non-zero field elements s: compute G(c_s). As soon as the first z bits are zero, with some index j, stop and output the commitment e_j together with c_s.
As claimed, we have h'(c_s) = e_j, so c_s commits to e_j; the challenge for this commitment is H(e_j) = L_j, and c_s passes the check for L_j; and c_s is not a codeword.
Each step of the search in Step 3 succeeds with probability 2^{-z} = \sqrt{Q}/2^{\lambda}. The attack therefore succeeds with probability about \frac{T\cdot\sqrt{Q}}{2^{\lambda}}, making Q random-oracle queries (for finding all L_j’s in Step 1) and T G-evaluations (plus some algebra).
We found an instantiation in which the position-binding advantage of the vector commitment is at most T^2/2^{2\lambda}, but the code-binding attack succeeds with probability T\sqrt{Q}/2^\lambda.