Distributed protocols with per-party state isolation #
Library construction (no cited definition): DistributedProtocol compiles n structurally isolated
per-party local states (Fin n → PartyState) plus a shared network/channel state (NetState) into
both static Protocol (UC.Execution) and snapshot adaptive AdaptiveProtocol (UC.Adaptive).
Unlike monolithic Protocol and AdaptiveProtocol machines, where protocol authors must
manually route per-party state (and, for AdaptiveProtocol, supply an arbitrary view
projection):
initPartyinitializes each partyi : Fin nindependently viaOracleComp.pi.onInput κ i xaccesses and updates only partyi's ownPartyStateand the sharedNetState.onNet κ qaccesses and updates onlyNetState.toAdaptiveuses the canonical per-party local-state projectionfun _ i s => s.parties i. It reusesAdaptiveProtocol.recordSnapshotunchanged, so.nonErasinghistories still append every party's view after every inner activation (including network queries); per-party activation histories remain open under #8377 item 6.
Main definitions #
Cslib.Crypto.Protocols.UC.DistributedState: per-party state array paired with shared network state.Cslib.Crypto.Protocols.UC.DistributedProtocol: protocol builder isolating per-party state.Cslib.Crypto.Protocols.UC.DistributedProtocol.toMachine,.toProtocol,.toAdaptive: compilers toMachine, staticProtocol, andAdaptiveProtocol.Cslib.Crypto.Protocols.UC.DistributedProtocol.PolyBounded: polynomial call-budget witness for distributed protocol components.
Main results #
Cslib.Crypto.Protocols.UC.DistributedProtocol.toMachine_isBounded,.toProtocol_polyBounded,.toAdaptive_polyBounded: call-budget propagation.Cslib.Crypto.Protocols.UC.DistributedProtocol.mem_support_init_iff,.applyInitialCorruptions_parties_of_not_mem,.mem_support_closeEval_handle_input,.mem_support_closeEval_handle_net: initialization and single-step local-state isolation.Cslib.Crypto.Protocols.UC.DistributedProtocol.corruptRouter_runFrom_parties_eq,.execMachine_runFrom_parties_eq,.adaptiveRouter_runFrom_parties_eq: local-state invariance for an initially honest, unactivated (and, in the adaptive case, uncorrupted) party under static and adaptive routing.Cslib.Crypto.Protocols.UC.DistributedProtocol.toAdaptive_toStatic_of_onCorrupt_eq: static round-trip compatibility.
Library construction (no cited definition): state of an n-party distributed protocol,
separating per-party local states parties : Fin n → PartyState from the shared network or
channel state net : NetState.
- parties : Fin n → PartyState
Per-party local states indexed by party identifier.
- net : NetState
Shared network or channel state.
Library construction (no cited definition): an n-party distributed protocol with
structurally isolated per-party local states.
Each party i initializes independently (initParty), interacts on input only with its own
PartyState and the shared NetState (onInput), and cannot directly read or modify any other
party j ≠ i's local state. Adversary network queries (onNet) interact only with NetState.
- PartyState : Type
Local state type of each individual party.
- NetState : Type
Shared network or channel state type.
Independent initial local-state sampler for party
iat security parameterκ.Initial shared network-state sampler at security parameter
κ.Party
i's input activation, reading and updating only(parties i, net).Adversary network activation, reading and updating only
net.Local state transformation applied when party
iis corrupted (defaults to identity).
Library construction (no cited definition): compile a DistributedProtocol at security
parameter κ into a closed Machine over protocolSpec.
Parties initialize independently via OracleComp.pi; party inputs update only parties i and
net; network queries update only net.
Library construction (no cited definition): compile a DistributedProtocol into a static
Protocol whose machine is P.toMachine κ (independent of the static corruption set C).
Library construction (no cited definition): compile a DistributedProtocol into an
AdaptiveProtocol with canonical per-party view fun _ i s => s.parties i and per-party
corruption hook P.onCorrupt.
This reuses AdaptiveProtocol.recordSnapshot unchanged, so .nonErasing histories still record
every party's view after each inner activation (including network queries); per-party activation
histories remain open under #8377 item 6.
Call budgets #
Library construction (no cited definition): polynomial call-budget witness for a
DistributedProtocol, bounding private coin draws in initParty, initNet, onInput, and
onNet by polynomials in κ.
- initParty (κ : ℕ) (i : Fin n) : OracleComp.IsQueryBounded (P.initParty κ i) (Polynomial.eval κ pInitP)
Per-party initialization call budget.
Network initialization call budget.
- onInput (κ : ℕ) (i : Fin n) (x : In) (ps : P.PartyState) (ns : P.NetState) : OracleComp.IsQueryBounded ((P.onInput κ i x).run (ps, ns)) (Polynomial.eval κ pIn)
Per-activation party input call budget.
- onNet (κ : ℕ) (q : NetQ) (ns : P.NetState) : OracleComp.IsQueryBounded ((P.onNet κ q).run ns) (Polynomial.eval κ pNet)
Per-activation network query call budget.
Library infrastructure (no cited result): if each initialization and activation component of
P is call-bounded, then P.toMachine κ is call-bounded by n * bInitP + bInitN + bIn + bNet.
Library infrastructure (no cited result): polynomial call budgets of a DistributedProtocol
propagate to P.toProtocol.
Library infrastructure (no cited result): polynomial call budgets of a DistributedProtocol
propagate to P.toAdaptive mem.
Initialization and single-step local-state isolation #
Library infrastructure (no cited result): a distributed state is in the support of
(P.toMachine κ).init iff each party's local state is in its independent initializer's support
and net is in initNet's support.
Library infrastructure (no cited result): corrupting party i leaves every other party
j ≠ i's local state unchanged.
Library infrastructure (no cited result): corrupting party i leaves net unchanged.
Library infrastructure (no cited result): initial corruptions C₀ leave every uncorrupted
party j ∉ C₀'s local state unchanged.
Library infrastructure (no cited result): initial corruptions leave the shared network state
net unchanged.
Library infrastructure (no cited result): activating party i leaves every other party
j ≠ i's local state unchanged on every supported outcome.
Library infrastructure (no cited result): a network query leaves every party's local state unchanged on every supported outcome.
End-to-end execution honest-party isolation #
Library infrastructure (no cited result): under static corruptRouter C (P.toMachine κ),
for any honest party j ∉ C and any program prog that never queries party j directly on the
party port, j's local state s.parties j is invariant across the entire Machine.runFrom
execution (even under arbitrary corrupted-party activations and network queries).
Library infrastructure (no cited result): in the full static UC execution machine
execMachine P.toProtocol A κ C, for any honest party j ∉ C and any environment program
prog that never queries party j directly, j's local state parties j is invariant across
Machine.runFrom, regardless of adversary A's behavior.
Library infrastructure (no cited result): under adaptiveRouter mode (P.toAdaptive mem) κ C₀,
for any initially uncorrupted party j ∉ s.corrupted and any program prog that neither
activates j on the environment party port nor corrupts j, j remains uncorrupted and j's
local state inner.parties j is invariant across the entire Machine.runFrom execution in both
.static and .adaptive modes.
Library infrastructure (no cited result): under P.toAdaptive mem, the canonical
corruption report's current field for party i is s.inner.parties i.
Library infrastructure (no cited result): when P.onCorrupt is the identity, converting
P.toAdaptive mem back to a static protocol yields P.toProtocol.