Skip to main content

Crate fancy_garbling

Crate fancy_garbling 

Source
Expand description

Implementation of two-party garbled circuits.

The core types are Garbler and Evaluator, which implement the circuit garbler and garbled circuit evaluator, respectively. These work in a streaming fashion, with Garbler sending the garbled gates over the wire as it garbles them, and Evaluator evaluating the garbled gates as it receives them. For static garbling, see classic::GarbledCircuit.

Modules§

classic
Provides objects and functions for statically garbling and evaluating a circuit without streaming.

Structs§

Evaluator
The garbled circuit evaluator.
Garbler
The garbled circuit garbler.
WireMod2
Representation of a mod-2 wire.

Traits§

BinaryWireLabel
The BinaryWireLabel provides the subroutines to implement AND gates for the garbler and evaluator in [fancy_traits::FancyBinary].
WireLabel
A trait that defines a wirelabel as used in garbled circuits.