Malicious Real/Ideal Multi-Party Computation Taxonomy #
This module formalizes the real/ideal simulation paradigm for multi-party computation (MPC) against
static coalitions of up to k malicious parties ([DR07], Section 8.1.1, Definition 8.1,
pp. 183–185; cf. [Gol04]):
- Functionalities with refusal inputs (
⊥):OptFunctionalitymodels probabilistic multi-output functionalities on∀ i, Option (In i), wherenonerepresents refusal to supply an input (⊥, [DR07], p. 184), withpatchOptInputreplacing a coalitionC's inputs while keeping honest parties' true inputssome (t i). - Real execution (
RealModel): on inputst : ∀ i, In iunder a malicious adversaryAcontrolling coalitionC, the real execution produces a joint distribution overExecutionOutcomerecording each honest partyi ∉ C's output (Option (Out i), wherenonemarks abort / no output) and the adversary's outputadvOut. - Three ideal-model output-delivery guarantees ([DR07], pp. 183–184):
- Guaranteed output delivery (
OutputGuarantee.delivery,DeliverySimulator,idealDelivery): the ideal adversary chooses effective coalition inputst'_C, the trusted party evaluatesfand deliverssome (y i)to every honest partyi ∉ C, and the simulator producesadvOutfromy_C. - Fairness (
OutputGuarantee.fair,FairSimulator,idealFair): the ideal adversary may instruct the trusted party to abort beforefis evaluated (so no party learns its output), or proceed to full delivery to all parties (ExecutionOutcome.IsFair). - Correctness and privacy without fairness (
OutputGuarantee.withAbort,AbortSimulator,idealWithAbort): the ideal adversary learnsy_Cfirst and then chooses which honest parties receivesome (y i)vsnone, still preserving honest output correctness and privacy.
- Guaranteed output delivery (
- Detectable-abort fair MPC ([DR07], Section 8.4.2, p. 194):
DetectableOutcomeandDetectableFairModelaugment fair abort with a blamed cheaterblame : Option ιthat always identifies a member of the deviating coalitionCupon abort (noneupon delivery). - Three indistinguishability regimes ([DR07], pp. 184–185):
PerfectMaliciousSecure(exactPMFequality),StatisticallyMaliciousSecure(CloseTowith errorε : ℝ≥0∞), andComputationallyMaliciousSecure(negligibleGame.advantageagainst an admitted class of distinguishers over a security-parameterized family). - Bridge to semi-honest
Protocol:Protocol.toPassiveRealModelembeds any protocol ofCslibFrontier.Crypto.Protocols.MPC.BasicintoRealModelfor passive coalitions, andPerfectSemiHonestPrivateLe.toPerfectMaliciousSecureliftsk-threshold perfect semi-honest privacy to perfect delivery security against passive coalitions.
Note on [DR07], Theorem 8.2 (pp. 185–186): Theorem 8.2 is an unproved survey of six landmark malicious general-circuit MPC constructions from external literature (GMW87, LMPS04, BGW88/CCD88, RB89/Beaver91, ILM05); this module formalizes Definition 8.1 and its model-level invariants, hierarchy, and passive bridge without claiming those external protocol constructions.
Main definitions #
Cslib.Crypto.Protocols.MPC.Malicious.OptFunctionality,Cslib.Crypto.Protocols.MPC.Malicious.patchOptInput: functionalities with refusal inputsnone.Cslib.Crypto.Protocols.MPC.Malicious.ExecutionOutcome,Cslib.Crypto.Protocols.MPC.Malicious.ExecutionOutcome.Delivered,Cslib.Crypto.Protocols.MPC.Malicious.ExecutionOutcome.Aborted,Cslib.Crypto.Protocols.MPC.Malicious.ExecutionOutcome.IsFair: joint real/ideal transcripts and honest delivery/fairness predicates.Cslib.Crypto.Protocols.MPC.Malicious.RealModel: real-world malicious execution models.Cslib.Crypto.Protocols.MPC.Malicious.OutputGuarantee,Cslib.Crypto.Protocols.MPC.Malicious.DeliverySimulator,Cslib.Crypto.Protocols.MPC.Malicious.FairSimulator,Cslib.Crypto.Protocols.MPC.Malicious.AbortSimulator,Cslib.Crypto.Protocols.MPC.Malicious.idealDelivery,Cslib.Crypto.Protocols.MPC.Malicious.idealFair,Cslib.Crypto.Protocols.MPC.Malicious.idealWithAbort,Cslib.Crypto.Protocols.MPC.Malicious.idealExec: ideal simulators and executions for guaranteed output delivery, fair abort, and unfair abort.Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure,Cslib.Crypto.Protocols.MPC.Malicious.ComputationallyMaliciousSecure: Definition 8.1 in the perfect, statistical, and computational regimes.Cslib.Crypto.Protocols.MPC.Malicious.DetectableOutcome,Cslib.Crypto.Protocols.MPC.Malicious.DetectableFairSimulator,Cslib.Crypto.Protocols.MPC.Malicious.idealFairDetectable,Cslib.Crypto.Protocols.MPC.Malicious.DetectableFairModel,Cslib.Crypto.Protocols.MPC.Malicious.PerfectDetectableFairSecure,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyDetectableFairSecure,Cslib.Crypto.Protocols.MPC.Malicious.ComputationallyDetectableFairSecure: detectable-abort fair MPC.Cslib.Crypto.Protocols.MPC.Malicious.Protocol.toPassiveRealModel: passive embedding ofMPC.Protocol.
Main results #
Cslib.Crypto.Protocols.MPC.Malicious.idealFair_toFairSimulator,Cslib.Crypto.Protocols.MPC.Malicious.idealWithAbort_toAbortSimulator: exact distributional embeddingsdelivery → fair → withAbort.Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.fair_of_delivery,Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.withAbort_of_fair,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure.fair_of_delivery,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure.withAbort_of_fair,Cslib.Crypto.Protocols.MPC.Malicious.ComputationallyMaliciousSecure.fair_of_delivery,Cslib.Crypto.Protocols.MPC.Malicious.ComputationallyMaliciousSecure.withAbort_of_fair: strict output-guarantee hierarchy across all three security regimes.Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.statisticallySecure,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure.computationallySecure: indistinguishability-regime hierarchy (perfect → statistical → computational).Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure.prob_not_delivered_le,Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.delivered_of_mem_support,Cslib.Crypto.Protocols.MPC.Malicious.StatisticallyMaliciousSecure.prob_unfair_le,Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.isFair_of_mem_support,Cslib.Crypto.Protocols.MPC.Malicious.PerfectMaliciousSecure.honestOut_eq_of_deterministic: honest-party delivery, all-or-nothing fairness, and deterministic output-correctness invariants.Cslib.Crypto.Protocols.MPC.Malicious.PerfectDetectableFairSecure.blame_mem_of_aborted,Cslib.Crypto.Protocols.MPC.Malicious.PerfectDetectableFairSecure.toFairSecure: cheater identifiability and forgetting-blame projection for detectable-abort fair MPC.Cslib.Crypto.Protocols.MPC.Malicious.PerfectSemiHonestPrivateLe.toPerfectMaliciousSecure: passive-coalition bridge fromMPC.Basic.PerfectSemiHonestPrivateLe.
References #
- Y. Dodis and T. Rabin, Cryptography and Game Theory, Section 8.1.1 (Definition 8.1, pp. 183–185) and Section 8.4.2 (detectable abort, p. 194).
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Chapter 7.
Functionalities with refusal inputs (⊥) and real/ideal execution outcomes #
Lift a deterministic Option-input function to an OptFunctionality.
Lift an MPC.Functionality on Option-inputs to an OptFunctionality via ProbComp.eval.
Lift a total MPC.Functionality to an OptFunctionality using a per-party default input
whenever a party supplies none (⊥).
Replace the inputs of coalition C with the adversary's effective inputs t'C (possibly
none = ⊥), while keeping every honest party i ∉ C's true input some (t i).
Joint transcript outcome of a real or ideal MPC execution with corrupted coalition C
([DR07], Definition 8.1, pp. 183–184): each honest party i ∉ C receives either a value
some y or none (abort / no output), paired with the adversary's arbitrary output advOut.
- honestOut (i : ι) : i ∉ C → Option (Out i)
Outputs received by the honest parties
i ∉ C(nonedenotes abort / no output). - advOut : AdvOut
Arbitrary output emitted by the adversary (or ideal simulator) controlling
C.
Every honest party i ∉ C received an output (some _).
No honest party i ∉ C received an output (none everywhere).
All-or-nothing fairness: either every honest party receives an output or none does ([DR07], Section 8.1.1, p. 184).
An abstract real-world execution model REAL_{A, π}(t) for an MPC protocol π against static
coalitions C ([DR07], Definition 8.1, p. 183).
Admitted real-world adversaries controlling coalition
C.Output type of adversary
Acontrolling coalitionC.- exec {C : Finset ι} (A : self.Adv C) : ((i : ι) → In i) → PMF (ExecutionOutcome ι Out C (self.AdvOut A))
Real joint execution distribution
REAL_{A, π}(t).
Ideal-model output-delivery guarantees and simulators #
The three output-delivery guarantees of [DR07], Section 8.1.1, pp. 183–184:
delivery: guaranteed output delivery (all honest parties always receivef's outputs);fair: fairness (the ideal adversary may abort only before learningf's outputs);withAbort: correctness and privacy without fairness (the ideal adversary learnsC's outputs first and may then withhold outputs from honest parties).
- delivery : OutputGuarantee
- fair : OutputGuarantee
- withAbort : OutputGuarantee
Ideal-world adversary (simulator) for guaranteed output delivery ([DR07],
Definition 8.1, pp. 183–184): given C's true inputs, chooses effective inputs t'C (possibly
none = ⊥) and local state, receives C's outputs from f, and emits AdvOut.
- State : Type u
Simulator internal state passed between input choice and output simulation.
Choose effective inputs for
Cand internal state givenC's true inputs.Produce the simulated adversary output given state and
C's ideal outputs.
Ideal-world adversary (simulator) for fair abort ([DR07], Section 8.1.1, p. 184):
chooses whether to abort before f is evaluated (Sum.inl sa) or supply effective inputs
Sum.inr (t'C, sd) for full delivery to all parties. Separating AbortState and DeliverState
avoids requiring any dummy witness when an ideal adversary never aborts.
- AbortState : Type u
Simulator internal state carried into the early-abort branch.
- DeliverState : Type u
Simulator internal state carried into the delivery branch.
- chooseAction : ((i : ↥C) → In ↑i) → PMF (self.AbortState ⊕ ((i : ↥C) → Option (In ↑i)) × self.DeliverState)
- finishAbort : self.AbortState → PMF AdvOut
Produce simulated adversary output on early abort (without seeing any functionality output).
- finishDeliver : self.DeliverState → ((i : ↥C) → Out ↑i) → PMF AdvOut
Produce simulated adversary output on delivery (seeing
C's ideal outputs).
Ideal-world adversary (simulator) for correctness and privacy without fairness
([DR07], Section 8.1.1, p. 184): chooses effective inputs t'C, receives C's outputs
from f, and then decides which honest parties receive some (y i) vs none alongside AdvOut.
Ideal execution IDEAL_{S, f}(t) with guaranteed output delivery.
Ideal execution IDEAL_{S, f}(t) with fair abort.
Ideal execution IDEAL_{S, f}(t) with unfair abort (correctness and privacy only).
Simulator type indexed by OutputGuarantee.
Ideal execution IDEAL_{S, f}(t) indexed by OutputGuarantee.
Exact distributional embeddings between output-delivery guarantees #
Embed a DeliverySimulator into FairSimulator by never choosing the abort branch.
Embedding a DeliverySimulator into FairSimulator preserves the exact ideal distribution.
Embed a FairSimulator into AbortSimulator: on early abort (Sum.inl sa), submit ⊥
(none) for all coalition members, discard f's outputs, and withhold delivery from all honest
parties; on delivery (Sum.inr (t'C, sd)), deliver to all honest parties.
Embedding a FairSimulator into AbortSimulator preserves the exact ideal distribution.
Embed a DeliverySimulator directly into AbortSimulator.
Support invariants of the ideal executions #
Every outcome in the support of idealDelivery delivers outputs to all honest parties.
Every outcome in the support of idealFair satisfies all-or-nothing fairness: either every
honest party receives an output or none does.
Deterministic correctness of idealWithAbort: in any supported outcome of idealWithAbort
for a deterministic functionality f, there is a single effective coalition input t'C such that
every honest party i ∉ C that receives an output some y_i receives the exact value
f (patchOptInput C t t'C) i.
Definition 8.1: Perfect, statistical, and computational malicious MPC security #
Perfect malicious MPC security ([DR07], Section 8.1.1, Definition 8.1,
pp. 183–184): for every static coalition C of size at most k and every admitted real adversary
A, there exists an ideal simulator S (matching output guarantee g) whose ideal execution
distribution equals real.exec A t on every input profile t.
Statistical malicious MPC security ([DR07], Section 8.1.1, Definition 8.1,
pp. 183–184): for every coalition C of size at most k and every real adversary A, there
exists an ideal simulator S such that real.exec A t and idealExec g f C S t are within
statistical distance ε (CloseTo) on every input profile t.
Computational malicious MPC security ([DR07], Section 8.1.1, Definition 8.1,
pp. 184–185): vocabulary predicate for a security-parameterized protocol family
real : ℕ → RealModel ι In Out against an admitted adversary-family class AdvAdm,
simulator-family class SimAdm, and distinguisher-family class DistAdm. For every coalition C
with C.card ≤ k and every admitted adversary family A, there exists an admitted simulator
family S such that for every input profile t, the real and ideal transcript ensembles are
Game.Indistinguishable against DistAdm.
Hierarchy and invariant theorems #
Perfect security is antitone in the corruption threshold k.
Statistical security is antitone in the corruption threshold k.
Statistical security is monotone in the error bound ε.
Computational security is antitone in the corruption threshold k.
Guaranteed output delivery implies fairness (perfect regime).
Fairness implies correctness and privacy without fairness (perfect regime).
Guaranteed output delivery implies fairness (statistical regime).
Fairness implies correctness and privacy without fairness (statistical regime).
Guaranteed output delivery implies fairness (computational regime), whenever simulator
admissibility is preserved by DeliverySimulator.toFairSimulator.
Fairness implies correctness and privacy without fairness (computational regime), whenever
simulator admissibility is preserved by FairSimulator.toAbortSimulator.
Perfect security implies 0-statistical security.
0-statistical security coincides with perfect security.
Statistical security with negligible error implies computational security (against unrestricted simulator and distinguisher admissibility classes).
Under statistical output-delivery security with error ε, the real execution fails to deliver
all honest outputs with probability at most ε.
Under perfect output-delivery security, every outcome in the support of the real execution delivers outputs to all honest parties.
Under statistical fair security with error ε, the real execution produces an unfair
(partially delivered / partially aborted) honest outcome with probability at most ε.
Under perfect fair security, every outcome in the support of the real execution satisfies
all-or-nothing fairness (o.IsFair).
Under perfect withAbort security for a deterministic functionality f, whenever any honest
parties receive outputs in a supported real execution, all delivered honest outputs agree with f
evaluated on honest inputs patched by a single effective coalition input t'C.
Joint execution outcome for detectable-abort fair MPC ([DR07], Section 8.4.2,
p. 194): augments ExecutionOutcome with blame : Option ι, identifying a deviating party when
the protocol aborts without output (none on delivery).
- outcome : ExecutionOutcome ι Out C AdvOut
Underlying honest outputs and adversary output.
- blame : Option ι
Detected deviating party on abort (
some p), ornoneon delivery.
Real-world execution model for a fair MPC protocol with detectable abort.
Forget the blame field to view a DetectableFairModel as an ordinary RealModel.
Ideal-world simulator for detectable-abort fair MPC: on early abort, the simulator must
designate a blamed cheater p : C (necessarily inside the corrupted coalition C, so no honest
party is ever blamed); on delivery, blame = none.
- AbortState : Type u
Simulator internal state carried into the early-abort branch.
- DeliverState : Type u
Simulator internal state carried into the delivery branch.
- chooseAction : ((i : ↥C) → In ↑i) → PMF (↥C × self.AbortState ⊕ ((i : ↥C) → Option (In ↑i)) × self.DeliverState)
- finishAbort : self.AbortState → PMF AdvOut
Produce simulated adversary output on early abort.
- finishDeliver : self.DeliverState → ((i : ↥C) → Out ↑i) → PMF AdvOut
Produce simulated adversary output on delivery.
Ideal execution for detectable-abort fair MPC.
Forget blame to obtain an ordinary FairSimulator from a DetectableFairSimulator.
Perfect security for detectable-abort fair MPC.
Statistical security for detectable-abort fair MPC.
Computational security for detectable-abort fair MPC (vocabulary predicate).
Every supported outcome of idealFairDetectable either delivers all honest outputs with
blame = none, or aborts all honest outputs while blaming a member p ∈ C.
Under perfect detectable-abort fair security, whenever an execution aborts (and at least one
honest party exists, or simply whenever d.blame is set), a member p ∈ C is blamed; no honest
party is ever falsely accused.
Under perfect detectable-abort fair security, if i ∉ C receives none, then some member
p ∈ C is blamed (d.blame = some p).
Forgetting blame turns perfect detectable-abort fair security into ordinary perfect fair
security.
Forgetting blame turns statistical detectable-abort fair security into ordinary statistical
fair security.
Bridge from semi-honest MPC.Protocol (Basic.lean) #
Embed any synchronous m-party Protocol from CslibFrontier.Crypto.Protocols.MPC.Basic
into RealModel for passive (semi-honest) adversaries: for every coalition C, the unique
passive adversary (PUnit) executes proto honestly and outputs the coalition's joint views.
Passive bridge from PerfectSemiHonestPrivateLe: every k-threshold perfectly private
semi-honest Protocol (such as BGW.bgwSumProtocol or CircuitEval's GMW protocol) satisfies
PerfectMaliciousSecure .delivery k in its passive RealModel against
OptFunctionality.ofTotalFunctionality defaultIn f.