Documentation

CslibFrontier.Crypto.Protocols.MPC.BatchOT

Ideal batched 1-out-of-2 oblivious transfer #

The two-party ideal oracle for k parallel 1-out-of-2 oblivious transfers of values in a type L. The sender (slot 0) submits two values for each of the k transfers, as a function Fin k → Bool → L, and receives nothing. The receiver (slot 1) submits a choice bit for each transfer and receives the chosen values. This is Goldreich's 1-out-of-k transfer (Section 7.3.2, Eq. 7.20, p. 640) for k = 2 over values in L rather than bits, invoked k times in one round; the library's ot14Spec is the 1-out-of-4 transfer of bits.

Main definitions #

References #

@[reducible]

k parallel 1-out-of-2 oblivious transfers of values in L: slot 0 (sender) submits two values per transfer and receives Unit; slot 1 (receiver) submits one choice bit per transfer and receives the chosen values.

def Cslib.Crypto.Protocols.MPC.batchOTAnswer {k : ℕ} {L : Type} (q : (s : Fin 2) → (batchOTSpec k L).Query () s) (s : Fin 2) :

The answer of batchOTSpec k L on query q: () to the sender and the values q 0 j (q 1 j) to the receiver.

The ideal memoryless world of batchOTSpec k L.

batchOTSpec k L as a two-party functionality: the inputs are the query parts of the two slots and the outputs are their answer parts.