Documentation

CslibFrontier.Crypto.Protocols.MPC.Broadcast

Synchronous Broadcast Combinator for Multiparty Protocols #

This module defines broadcast as the special case of the all-to-all message layer (CslibFrontier.Crypto.Protocols.MPC.AllToAll) in which the message does not depend on the receiver. In broadcastSteps m payload finish, every sender s : Fin m sends the same payload s (st s) : Msg to every receiver over allToAllSchedule m Msg, and each party i outputs finish i (st i) msgs from the vector msgs : Fin m → Msg of all broadcast values.

Main definitions #

Main results #

def Cslib.Crypto.Protocols.MPC.broadcastSteps (m : ℕ) {spec : MultiOracleSpec} {Msg : Type} [AddCommMonoid Msg] {State Out : Fin m → Type} (payload : (i : Fin m) → State i → Msg) (finish : (i : Fin m) → State i → (Fin m → Msg) → Out i) :
Steps State Out (allToAllSchedule m Msg)

Synchronous broadcast step combinator: each party s broadcasts payload s (st s) to every party, and each party i computes finish i (st i) msgs from the vector msgs : Fin m → Msg of all broadcast values.

@[simp]
theorem Cslib.Crypto.Protocols.MPC.evalWith_broadcastSteps (m : ℕ) {spec : MultiOracleSpec} {Msg : Type} [AddCommMonoid Msg] {State Out : Fin m → Type} (payload : (i : Fin m) → State i → Msg) (finish : (i : Fin m) → State i → (Fin m → Msg) → Out i) (W : MultiOracleWorld spec) (st : (i : Fin m) → State i) :
(broadcastSteps m payload finish).evalWith W st = PMF.pure fun (i : Fin m) => receivedScheduleOfInbox i (fun (s : Fin m) => payload s (st s)) (allPairs m)

Evaluating broadcastSteps in any world W deterministically delivers all broadcast values.

@[simp]
theorem Cslib.Crypto.Protocols.MPC.outputAt_broadcastSteps (m : ℕ) {spec : MultiOracleSpec} {Msg : Type} [AddCommMonoid Msg] {State Out : Fin m → Type} (payload : (i : Fin m) → State i → Msg) (finish : (i : Fin m) → State i → (Fin m → Msg) → Out i) (i : Fin m) (st_i : State i) (msgs : Fin m → Msg) :
(broadcastSteps m payload finish).outputAt i st_i (receivedScheduleOfInbox i msgs (allPairs m)) = finish i st_i msgs

On the transcript of the broadcast values msgs, party i outputs finish i st_i msgs.