Verifying Additive-Share Product Relations (Protocol 23.5 and Lemma 23.1) #
This module formalizes Protocol 23.5 (proving product relations between two parties P₁ and P₂
holding additive triple shares from a dealer D) together with Lemma 23.1 (soundness against a
corrupt dealer), polynomial identity (23.8), and completeness for honest D, P₁, P₂ from
[BS23], Sections 23.2.4.5–23.2.4.6 (printed pp. 1014–1016).
For m pairs of additive triple shares ((a_{k1}, b_{k1}, c_{k1}), (a_{k2}, b_{k2}, c_{k2}))
represented as Cslib.Crypto.Protocols.MPC.Beaver.TripleShare (ZMod q), ProductRelations t₁ t₂
expresses (23.7): (a_{k1} + a_{k2})(b_{k1} + b_{k2}) = c_{k1} + c_{k2} for k = 1, ..., m.
This general m-relation problem is posed in Section 23.2.4.5 (p. 1014); the reduction from an
authenticated triple in Section 23.2.4.8 and Theorem 23.9 stay outside this module, and the
simulators and Fact 23.2 privacy analysis of Section 23.2.4.7 are deferred to
ProductRelation.Privacy.
Protocol model and hypotheses #
- Standing prime modulus and
2 * m < q: matching Section 23.2.1 (p. 1003),qis prime via[Fact (Nat.Prime q)]. We additionally assumehm : 2 * m < q, which the book leaves implicit so that the interpolation points0, ..., 2mare distinct inZMod q(and ensuresm + 1 < q, so the challenge setChallenge q m := ℤ_q \ {0, ..., m}is nonempty).dealandhonestC2useLagrange.interpolateoverZMod qand arenoncomputable, carrying no running-time claim.
Main definitions #
Cslib.Crypto.Protocols.MPC.ProductRelation.ProductRelations: relation(23.7)onFin mpairs ofTripleShare (ZMod q)values.Cslib.Crypto.Protocols.MPC.ProductRelation.PartyDeal,Cslib.Crypto.Protocols.MPC.ProductRelation.DealerExtra,Cslib.Crypto.Protocols.MPC.ProductRelation.honestC2,Cslib.Crypto.Protocols.MPC.ProductRelation.deal: Protocol 23.5 Step 1 dealer messages and honest dealer distribution.Cslib.Crypto.Protocols.MPC.ProductRelation.Challenge,Cslib.Crypto.Protocols.MPC.ProductRelation.verifyPair,Cslib.Crypto.Protocols.MPC.ProductRelation.honestPartiesRun: Protocol 23.5 Steps 2–6 challenge set, verification predicates, and honest-party execution.
Main results #
Cslib.Crypto.Protocols.MPC.ProductRelation.eval_honestPartiesRun_accept_le: Lemma 23.1 bound2m / (q - m - 1)against arbitrary corrupt dealer messages violating(23.7).Cslib.Crypto.Protocols.MPC.ProductRelation.discrepancyPoly_eq_zero_of_productRelations: polynomial identity(23.8)for honest dealer outputs.Cslib.Crypto.Protocols.MPC.ProductRelation.eval_honestProtocol_eq_pure: consequence of(23.8)that honest(D, P₁, P₂)both accept with probability1.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Sections 23.2.4.5–23.2.4.6, Protocol 23.5, Lemma 23.1, printed pp. 1014–1016 (and standing prime modulus convention in Section 23.2.1, p. 1003).
The product relations (23.7) of [BS23] (§23.2.4.5, printed p. 1014) for m
pairs of 2-party triple shares (a_{ki}, b_{ki}, c_{ki}) over ZMod q:
(a_{k1} + a_{k2})(b_{k1} + b_{k2}) = c_{k1} + c_{k2} for k = 1, ..., m.
Instances For
The full message sent by the dealer D to party P_i in Protocol 23.5 Step 1(e)
([BS23], printed p. 1015): (a_{ki}, b_{ki})_{k=0}^m and (c_{ki})_{k=0}^{2m}.
The values
(a_{0i}, ..., a_{mi}):a_{0i}is the extra value of Step 1(a) anda_{1i}, ..., a_{mi}are the shares in(23.7).The values
(b_{0i}, ..., b_{mi}), in the same layout.The values
(c_{0i}, ..., c_{2m,i}):c_{0i}of Step 1(a), the sharesc_{1i}, ..., c_{mi}in(23.7), thenc_{m+1,i}, ..., c_{2m,i}of Step 1(d).
The m target triple shares (a_{ki}, b_{ki}, c_{ki})_{k=1}^m carried by PartyDeal.
Auxiliary random values chosen by an honest dealer for party P_i in Protocol 23.5
Steps 1(a) and 1(d): blinding share (a_{0i}, b_{0i}, c_{0i}) and tail shares
(c_{m+1,i}, ..., c_{2m,i}).
- a0 : ZMod q
Blinding share
a_{0i}at evaluation node0. - b0 : ZMod q
Blinding share
b_{0i}at evaluation node0. - c0 : ZMod q
Blinding product share
c_{0i}at evaluation node0. Tail product shares
(c_{m+1,i}, ..., c_{2m,i})at nodesm + 1, ..., 2m.
Instances For
Assemble party P_i's full PartyDeal from its target triples t and dealer randomness
e.
Interpolated polynomial A_i(X) of degree ≤ m from d.a on {0, ..., m}.
Interpolated polynomial B_i(X) of degree ≤ m from d.b on {0, ..., m}.
Interpolated polynomial C_i(X) of degree ≤ 2m from d.c on {0, ..., 2m}.
The discrepancy polynomial (A₁ + A₂)(B₁ + B₂) - (C₁ + C₂) appearing in (23.8) and
Lemma 23.1.
Challenge set ℤ_q \ {0, ..., m} in Protocol 23.5 Steps 3–4
([BS23], printed p. 1015).
Honest execution of Protocol 23.5 Steps 3–6 against dealer messages (d₁, d₂) when both
P₁ and P₂ are honest (P₁ samples r uniformly from ℤ_q \ {0, ..., m}).
Lemma 23.1 ([BS23], §23.2.4.6, printed p. 1016):
if D is corrupt (d₁, d₂ arbitrary) and both P₁ and P₂ are honest, and relation (23.7)
does not hold on their triple shares, then the probability that either P₁ or P₂ finishes without
aborting is at most 2m / (q - m - 1). Adds hm : 2 * m < q so the interpolation nodes in ZMod q
are distinct and the challenge set Challenge q m is nonempty.
Honest Dealer, Polynomial Identity (23.8), and Completeness #
Auxiliary dealer values computed for P₂ from (t₁, t₂, e₁, a02, b02) in Protocol 23.5
Step 1(a)-(d) ([BS23], printed p. 1015).
Polynomial identity (23.8) ([BS23], printed p. 1015): for an honest dealer's
outputs (d₁, d₂) on inputs (t₁, t₂) satisfying (23.7) with 2 * m < q,
(A₁ + A₂)(B₁ + B₂) - (C₁ + C₂) = 0.
The consequence of (23.8) ([BS23], printed p. 1015) that when D, P₁, P₂ are
honest and (t₁, t₂) satisfies (23.7) with 2 * m < q, both P₁ and P₂ accept with
probability 1.