Family Inputs, View Encodings and Efficiency Predicates for the GMW Completeness Theorem #
This module fixes the word-level interface of the uniform efficiency claims in
Cslib.Crypto.Protocols.MPC.PolyTime. A family instance is packaged with its party inputs
(FamilyRunInput) or with a coalition's inputs and outputs (FamilySimInput), records encoded
injectively as bit lists by enc_structure. Party views of gmwOT14RandomizedProtocol are
encoded by encGMWPartyView, and coalition view tuples by encodeCoalitionView. The named
predicates Protocol.Family.IsOraclePPT and CoalitionSimulator.Family.IsPPT state uniform
efficiency of a protocol family's joint word-level runner and of a coalition simulator family.
Main definitions #
Cslib.Crypto.Protocols.MPC.FamilyRunInput,Cslib.Crypto.Protocols.MPC.FamilySimInput,Cslib.Crypto.Protocols.MPC.encFamilyRunInput,Cslib.Crypto.Protocols.MPC.encFamilySimInput: family input records and their injective bit-list encodings.Cslib.Crypto.Protocols.MPC.encGMWPartyView,Cslib.Crypto.Protocols.MPC.encodeCoalitionView: word-level view encoders forgmwOT14RandomizedProtocolandgmwOT14RandomizedSim.Cslib.Crypto.Protocols.MPC.Protocol.Family.IsOraclePPT,Cslib.Crypto.Protocols.MPC.CoalitionSimulator.Family.IsPPT: uniform efficiency of a protocol family's joint word-level runner and of a coalition simulator family.
References #
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.3.2 (Eq. 7.20, p. 640), Section 7.3.3 (Construction 7.3.7, pp. 643–644), Section 7.3.4 (Theorem 7.3.11, p. 648), Section 7.5.1.2 (Definition 7.5.1, Eqs. 7.39–7.40, p. 696; p. 697), Section 7.5.2.1 (p. 703), Section 7.5.2.2 (Construction 7.5.8, p. 704), Section 7.5.2.3 (Construction 7.5.10, p. 706), and Section 7.5.2.4 (Theorem 7.5.12, p. 707).
Family input records and encGMWPartyView #
Input record for running a coalition simulator family: the instance index : α with the
coalition's n index-bit inputs and k index-bit outputs.
- index : α
The instance of the family.
The coalition's inputs.
The coalition's outputs.
Zero-extension and serialization of coalition tuples is injective.
Injective bit-list encoding of FamilySimInput α m n k I: pairs enc index with the
zero-extended packed coalition input bits extendCoalitionBits I inputs and output bits
extendCoalitionBits I outputs.
Serialize party i's complete PartyView in gmwOT14RandomizedProtocol m coins n k C to a
List Bool encoding:
v.input : BitString nv.coins.1 : BitString coins(randomized-wrapper coin share)v.coins.2.1.1 : Fin (n + coins) → Fin (m - 1) → Bool(Step 1 input-sharing coins)encOTSubCoins _ i v.coins.2.2(Step 2 & Step 3 $\text{OT}_1^4$ sender coins)- Step 1 received input shares (
encPairsMsgReceived) - Step 2 & Step 3 received $\text{OT}_1^4$ receiver answers (
encOTOracleAnswers) - Step 3 received output-reconstruction shares (
encOutCoordsMsgReceived).
Encode a coalition view tuple vI : (i : I) → PartyView In Coins sc i.1 into List Bool
by listing encView i (vI ⟨i, hi⟩) for i ∈ I and [] for i ∉ I.
Named efficiency predicates for protocol and simulator families #
A family of m-party $\text{OT}_1^4$-hybrid protocols proto a, indexed by a : α with
n a-bit party inputs, has a uniform oracle-PPT joint word-level execution: the centralized runner
Protocol.runEncoded, with party views encoded by encView a and outputs by encOut a, is
Cslib.Probability.IsOraclePPTOn over the family input encoding encFamilyRunInput enc m n. One
machine and clock serve every instance, and the runner is charged for the whole family input. This
certifies the joint execution across all parties rather than separate per-party strategies.
A family of coalition-I simulators S a, indexed by a : α with n a-bit party inputs and
k a-bit party outputs, is uniformly PPT: on the family input encoding encFamilySimInput enc m n k I, sampling the simulated coalition views and encoding them with encodeCoalitionView (encView a) I is Cslib.Probability.IsPPTOn.