IGarbledCircuit
Interfaces · AiDotNet.FederatedLearning.MPC
Defines the contract for garbled circuit generation and evaluation.
Known implementations: GarbledCircuitEvaluator, GarbledCircuitGenerator
For Beginners
Garbled circuits are a technique for two parties to compute any function on their combined inputs without revealing their inputs to each other.
How It Works
How it works:
Optimizations supported:
Methods
| Method | Summary |
|---|---|
GarbledCircuitData Garble(IReadOnlyList<CircuitGate> gates, int inputWireCount, int outputWireCount) |
Garbles a boolean circuit represented as a list of gate operations. |
byte[][] Evaluate(GarbledCircuitData garbledData, byte[][] inputLabels) |
Evaluates a garbled circuit given input wire labels. |
int[] Decode(byte[][] outputLabels, byte[][] decodingTable) |
Decodes the output wire labels to actual output bits. |