BGW Semi-Honest Arithmetic MPC Gates and Degree-Reduction Protocol #
This module formalizes the degree-reduction algebra and synchronous $m$-party
Ben-Or–Goldwasser–Wigderson (BGW) semi-honest arithmetic gate protocols over finite fields
([BOGW88]; [GRR98]; [AL17];
[Gol04]; [KL20]), building on the Shamir secret-sharing homomorphisms and
unauthorized-coalition marginal uniformity in
CslibFrontier.Crypto.Protocols.SecretSharing.Shamir.Linear:
- BGW Multiplication Step and Degree-Reduction Algebra ($2t < |\text{Party}|$):
- In Asharov–Lindell ([AL17]; numbering as in the full version, ePrint
2011/136), Section 4.3 (Protocol 4.5, Proposition 4.6, Protocol 4.7, Claims 4.8–4.9, and
Proposition 4.10) presents the classical two-step
randomize-then-reduce multiplication gate, where parties first add a degree-$2t$ zero-share
(
bgwMulStep params r₁ a r₂ b r_z, reconstructing to $a \cdot b$ viareconstruct_bgwMulStep_eq_mul) and then apply a linear degree-reduction step, whereas Section 6.1 explicitly describes the Gennaro–Rabin–Rabin (GRR, [GRR98]) one-step degree-reduction simplification, in which each party $j$ directly reshares its degree-$2t$ product $a_j \cdot b_j$ using a fresh degree-$t$ Shamir polynomial and all parties take a Lagrange linear combination without a separate randomization step. - Commutativity of Lagrange Reconstruction and Shamir Sharing (
bgwDegreeReduceShare_share): when each party $j$ reshares its intermediate value $d_j$ using fresh degree-$t$ Shamir randomness $r_{\text{sub}}(j)$, and each party $i$ applies Lagrange reconstruction (bgwDegreeReduceShare) to its column of received sub-shares, the result equals party $i$'s genuine degree-$t$ Shamir share ofPolynomial.reconstruct params.point dunder combined randomnessbgwReducedRandomness params r_sub. This establishes correctness for both the one-step GRR resharing of $a_j \cdot b_j$ (bgwDegreeReduceShare_mul_eq_share,reconstruct_bgwDegreeReduceShare_mul_eq_mul) and the two-step zero-randomized intermediate values (bgwDegreeReduceShare_bgwMulStep_eq_share).
- In Asharov–Lindell ([AL17]; numbering as in the full version, ePrint
2011/136), Section 4.3 (Protocol 4.5, Proposition 4.6, Protocol 4.7, Claims 4.8–4.9, and
Proposition 4.10) presents the classical two-step
randomize-then-reduce multiplication gate, where parties first add a degree-$2t$ zero-share
(
- 1-Round Synchronous BGW/GRR Degree-Reduction Multiplication Gate
(
bgwDegreeReductionProtocol):- Formalizes the 1-round $m$-party GRR degree-reduction multiplication gate over
noOracleSpec([GRR98]; [AL17], Section 6.1) usingallToAllStepsWithandreceivedScheduleOfInboxfromCslibFrontier.Crypto.Protocols.MPC.AllToAll. - Every supported execution on degree-$t$ shares of $a, b$ ($2t < m$) outputs genuine
degree-$t$ Shamir shares of $a \cdot b$ (
output_bgwDegreeReductionProtocol_eq_share_mul,reconstruct_output_bgwDegreeReductionProtocol_eq_mul). - For every coalition $I$ with $|I| \le t$, the marginal distribution of $I$'s views equals
bgwDegreeReductionViewSim(map_restrict_evalWith_bgwDegreeReductionProtocol, following [AL17], Section 3.2, Claims 3.2 and 3.4), depending only on $I$'s own input share pairs and independent of honest parties' inputs.
- Formalizes the 1-round $m$-party GRR degree-reduction multiplication gate over
- 2-Round Synchronous BGW Sum Protocol (
bgwSumProtocol):- Formalizes the 2-round $m$-party BGW input-sharing, local addition, and output-reconstruction
protocol over
noOracleSpec([AL17], Section 4.2, Protocol 4.1 and Claim 4.3, specialized to addition gates). - Proves exact output correctness (
output_bgwSumProtocol) and full joint view-and-output $t$-privacyPerfectSemiHonestPrivateLe(perfectSemiHonestPrivateLe_bgwSum, [AL17], Section 2.1, Definition 2.1) for all coalitions $I$ with $|I| \le t$.
- Formalizes the 2-round $m$-party BGW input-sharing, local addition, and output-reconstruction
protocol over
Main definitions #
Cslib.Crypto.Protocols.MPC.BGW.bgwMulStep: degree-$2t$ zero-randomized BGW multiplication step.Cslib.Crypto.Protocols.MPC.BGW.bgwReducedRandomness,Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReduceShare: Lagrange-recombined degree-$t$ randomness and BGW degree-reduction share recombination.Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReductionProtocol,Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReductionViewSim: 1-round synchronous $m$-party BGW/GRR degree-reduction multiplication gate protocol and $t$-private coalition view simulator.Cslib.Crypto.Protocols.MPC.BGW.bgwSumSchedule,Cslib.Crypto.Protocols.MPC.BGW.bgwSumFunctionality,Cslib.Crypto.Protocols.MPC.BGW.bgwSumProtocol,Cslib.Crypto.Protocols.MPC.BGW.bgwSumSim: 2-round synchronous $m$-party BGW sum protocol and $t$-private coalition simulator.
Main results #
Cslib.Crypto.Protocols.MPC.BGW.bgwMulStep_eq_eval_sharingPolynomial,Cslib.Crypto.Protocols.MPC.BGW.reconstruct_bgwMulStep_eq_mul: algebraic evaluation and Lagrange reconstruction ofbgwMulStepfor $2t < |\text{Party}|$.Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReduceShare_share,Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReduceShare_mul_eq_share,Cslib.Crypto.Protocols.MPC.BGW.bgwDegreeReduceShare_bgwMulStep_eq_share,Cslib.Crypto.Protocols.MPC.BGW.reconstruct_bgwDegreeReduceShare_mul_eq_mul: commutativity of Lagrange reconstruction with Shamir sharing and correctness of BGW degree reduction.Cslib.Crypto.Protocols.MPC.BGW.output_bgwDegreeReductionProtocol_eq_share_mul,Cslib.Crypto.Protocols.MPC.BGW.reconstruct_output_bgwDegreeReductionProtocol_eq_mul,Cslib.Crypto.Protocols.MPC.BGW.map_restrict_evalWith_bgwDegreeReductionProtocol: degree-$t$ output correctness and coalition view simulation ofbgwDegreeReductionProtocol.Cslib.Crypto.Protocols.MPC.BGW.output_bgwSumProtocol,Cslib.Crypto.Protocols.MPC.BGW.perfectSemiHonestPrivateLe_bgwSum: output correctness and full joint view-and-output $t$-privacy ofbgwSumProtocol.
References #
- A. Shamir, How to Share a Secret.
- M. Ben-Or, S. Goldwasser, A. Wigderson, Completeness Theorems for Non-Cryptographic Fault-Tolerant Distributed Computation.
- R. Gennaro, M. O. Rabin, T. Rabin, Simplified VSS and Fast-Track Multiparty Computations with Applications to Threshold Cryptography.
- G. Asharov, Y. Lindell, A Full Proof of the BGW Protocol for Perfectly Secure Multiparty Computation.
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Chapter 7.
- J. Katz, Y. Lindell, Introduction to Modern Cryptography.
1. BGW multiplication step and degree-reduction algebra #
Local BGW degree-$2t$ zero-randomized multiplication step ([AL17], Section 4.3,
Protocol 4.5, steps 1–2): party i multiplies its degree-$t$ shares of a and b and adds a
degree-$2t$ Shamir share of 0 with randomness r_z : Fin (2 * params.threshold) → F.
bgwMulStep evaluates the degree-$\le 2t$ sharing polynomial of a * b with tail randomness
mulTailCoeffs a r₁ b r₂ + r_z.
When 2 * params.threshold < Fintype.card Party ($t < n / 2$), Lagrange reconstruction of
bgwMulStep across all parties recovers a * b.
Combined degree-$t$ Shamir randomness resulting from Lagrange recombination of per-party
resharing polynomials r_sub : Party → Randomness params ([GRR98];
[AL17], Section 6.1).
2. Synchronous $m$-party BGW gate protocols and $t$-privacy #
1-round synchronous $m$-party BGW degree-reduction multiplication gate protocol over
noOracleSpec ([GRR98]; [AL17], Section 6.1):
- Each party
s : Fin mholds input share pairuv_s = (u_s, v_s) : F × Fand samples fresh degree-$t$ Shamir randomnessr_s : Randomness params. - Each party
ssends the sub-shareshare params r_s (u_s * v_s) ito each partyi : Fin mviaallToAllStepsWith. - Each party
ioutputs the Lagrange-recombined sharePolynomial.reconstruct params.point inbox_i.
Construct party i's PartyView in bgwDegreeReductionProtocol from its input uv_i,
its coins r_i, and its received sub-share inbox inbox_i : Fin m → F.
On any supported execution of bgwDegreeReductionProtocol with degree-$t$ Shamir shares of
a and b ($2t < m$), reconstructing the output shares over any degree-$t$ authorized coalition
s (params.threshold + 1 ≤ s.card) recovers a * b.
Coalition view simulator for bgwDegreeReductionProtocol params ([AL17],
Section 3.2, Claims 3.2 and 3.4): given only the coalition's input share pairs
uvI : (i : I) → F × F, samples uniform coins rI for i ∈ I and independent uniform sub-share
vectors hCompl : Iᶜ → I → F from honest senders s ∉ I, and assembles each corrupted party's
inbox.
$t$-Privacy of BGW Degree-Reduction Views ([AL17], Section 3.2, Claims 3.2
and 3.4): for every coalition I with I.card ≤ params.threshold and every input tuple
uv : Fin m → F × F, the marginal distribution of I's views in
bgwDegreeReductionProtocol params equals ProbComp.eval (bgwDegreeReductionViewSim params I (I.restrict uv)), which depends only on I.restrict uv and is independent of all honest parties'
input share pairs.
3. 2-round synchronous $m$-party BGW sum protocol and full joint $t$-privacy #
Schedule for bgwSumProtocol params: one all-to-all point-to-point Shamir input-sharing phase
followed by one all-to-all broadcast of summed shares.
Deterministic $m$-party functionality returning the sum ∑ j : Fin m, x j to every party.
2-round synchronous $m$-party BGW sum protocol over noOracleSpec
([AL17], Section 4.2, Protocol 4.1, for a circuit of addition gates):
- Each party
s : Fin msamples degree-$t$ Shamir randomnessr_s : Randomness paramsand sendsshare params r_s (x s) rcvto each receiverrcv : Fin mviaallToAllStepsWith. - Each party
k : Fin msums its received sharesY_k = ∑ s : Fin m, inbox_k sand broadcastsY_kviabroadcastSteps. - Each party reconstructs
Polynomial.reconstruct params.point Y.
Construct party i's PartyView in bgwSumProtocol from its input x_i, its coins r_i,
its Round 1 received share inbox inbox_i : Fin m → F, and the Round 2 broadcast vector
Y : Fin m → F.
Output correctness of bgwSumProtocol: on every execution in the support, every party outputs
∑ j : Fin m, x j.
Coalition simulator for bgwSumProtocol params against any static coalition I with
I.card ≤ params.threshold:
- If
I = Finset.univ(vacuous whenI.card ≤ params.threshold < m) orI = ∅(empty view), handles directly; otherwise picks an honest pivot partyj₀ ∉ Iand setsH' := Iᶜ.erase j₀. - Samples total Round 2 randomness
R_tot : Randomness params, corrupted coinsrI : (i : I) → Randomness params, and honest non-pivot Round 1 shareshRest : (s : H') → (I → F)uniformly. - Computes the Round 2 broadcast vector
Y k = share params R_tot y kfrom the ideal outputyand sets the pivot honest partyj₀'s Round 1 share toi ∈ Iso that the column of shares received byisums toY i.
Full Joint View-and-Output $t$-Privacy of bgwSumProtocol
(cf. [AL17], Section 4.2, Protocol 4.1 and Claim 4.3, for addition gates only):
for every static coalition I with I.card ≤ params.threshold, bgwSumProtocol params privately
computes bgwSumFunctionality m in noOracleWorld with simulator bgwSumSim params.