Trait fancy_garbling::circuit::GateType
source · [−]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
sourcefn make_constant(val: u16) -> Self
fn make_constant(val: u16) -> Self
Generate constant gate
sourcefn make_garbler_input(id: usize) -> Self
fn make_garbler_input(id: usize) -> Self
Generate garbler input gate
sourcefn make_evaluator_input(id: usize) -> Self
fn make_evaluator_input(id: usize) -> Self
Generate evaluator input gate