Expand description

Interoperability between the Tandem MPC engine and the Garble language.

This crate provides helper functions for translating between the Tandem MPC engine circuit representation and the Garble language circuit representation and types.

Structs

A Tandem circuit together with its associated Garble types.

Enums

A subset of crate::ast::Expr that is used as input / output by an crate::eval::Evaluator.
The role of a party in the MPC execution (evaluator or contributor).
Either a concrete type or a struct/enum that needs to be looked up in the definitions.
A variant literal (either of unit type or containing fields), used by Literal::Enum.

Functions

Scans, parses and type-checks a Garble program.
Compiles the (type-checked) program, producing a circuit of gates.
Decodes output bits from the Tandem engine as a Garble literal.
Returns the Garble type of the input associated with the specified role.
Parses an input string as a Garble literal.
Parses an input string as a Garble literal and encodes it as input bits for the Tandem engine.

Type Definitions

crate::ast::FnDef after typechecking.