pub trait Dcf<const IN_BLEN: usize, const OUT_BLEN: usize, G>where
G: Group<OUT_BLEN>,{
// Required methods
fn gen(
&self,
f: &CmpFn<IN_BLEN, OUT_BLEN, G>,
s0s: [&[u8; OUT_BLEN]; 2],
) -> Share<OUT_BLEN, G>;
fn eval(
&self,
b: bool,
k: &Share<OUT_BLEN, G>,
xs: &[&[u8; IN_BLEN]],
ys: &mut [&mut G],
);
fn full_eval(&self, b: bool, k: &Share<OUT_BLEN, G>, ys: &mut [&mut G]);
}Expand description
Required Methods§
Sourcefn gen(
&self,
f: &CmpFn<IN_BLEN, OUT_BLEN, G>,
s0s: [&[u8; OUT_BLEN]; 2],
) -> Share<OUT_BLEN, G>
fn gen( &self, f: &CmpFn<IN_BLEN, OUT_BLEN, G>, s0s: [&[u8; OUT_BLEN]; 2], ) -> Share<OUT_BLEN, G>
s0s is $s^{(0)}_0$ and $s^{(0)}_1$ which should be randomly sampled.