jf_relation/gates/
lookup.rs1use super::Gate;
10use ark_ff::Field;
11
12#[derive(Debug, Clone)]
14pub struct LookupGate<F: Field> {
15 pub(crate) q_dom_sep: F,
16 pub(crate) table_dom_sep: F,
17 pub(crate) table_key: F,
18}
19
20impl<F> Gate<F> for LookupGate<F>
21where
22 F: Field,
23{
24 fn name(&self) -> &'static str {
25 "UltraPlonk Lookup Gate"
26 }
27 fn q_lookup(&self) -> F {
28 F::one()
29 }
30 fn q_dom_sep(&self) -> F {
31 self.q_dom_sep
32 }
33 fn table_key(&self) -> F {
34 self.table_key
35 }
36 fn table_dom_sep(&self) -> F {
37 self.table_dom_sep
38 }
39}