Skip to main content

fancy_garbling/
lib.rs

1//! Implementation of two-party garbled circuits.
2//!
3//! The core types are [`Garbler`] and [`Evaluator`], which implement the
4//! circuit garbler and garbled circuit evaluator, respectively. These work in a
5//! _streaming_ fashion, with [`Garbler`] sending the garbled gates over the
6//! wire as it garbles them, and [`Evaluator`] evaluating the garbled gates as
7//! it receives them. For _static_ garbling, see [`classic::GarbledCircuit`].
8#![deny(missing_docs)]
9
10pub mod classic;
11mod garble;
12mod wire;
13
14pub use crate::garble::{Evaluator, Garbler};
15pub use crate::wire::WireMod2;
16pub use crate::wire::{BinaryWireLabel, WireLabel};