pub trait GateType: Display {
    fn make_constant(val: u16) -> Self;
    fn make_garbler_input(id: usize) -> Self;
    fn make_evaluator_input(id: usize) -> Self;
}
Expand description

Trait representing circuit gates that can be used in CircuitType

Required Methods

Generate constant gate

Generate garbler input gate

Generate evaluator input gate

Implementors