pub trait Dcf<const N: usize, const LAMBDA: usize, G>where
G: Group<LAMBDA>,{
// Required methods
fn gen(
&self,
f: &CmpFn<N, LAMBDA, G>,
s0s: [&[u8; LAMBDA]; 2],
) -> Share<LAMBDA, G>;
fn eval(
&self,
b: bool,
k: &Share<LAMBDA, G>,
xs: &[&[u8; N]],
ys: &mut [&mut G],
);
}Expand description
API of Distributed comparison function.
See CmpFn for N and LAMBDA.