Trait seec::protocols::FunctionDependentSetup
source · pub trait FunctionDependentSetup<P: Protocol, Idx> {
type Error;
// Required methods
fn setup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
shares: &'life1 GateOutputs<P::ShareStorage>,
circuit: &'life2 ExecutableCircuit<P::Plain, P::Gate, Idx>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn request_setup_output<'life0, 'async_trait>(
&'life0 mut self,
count: usize
) -> Pin<Box<dyn Future<Output = Result<P::SetupStorage, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Associated Types§
Required Methods§
sourcefn setup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
shares: &'life1 GateOutputs<P::ShareStorage>,
circuit: &'life2 ExecutableCircuit<P::Plain, P::Gate, Idx>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn setup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
shares: &'life1 GateOutputs<P::ShareStorage>,
circuit: &'life2 ExecutableCircuit<P::Plain, P::Gate, Idx>
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Called in the function-dependent setup phase
sourcefn request_setup_output<'life0, 'async_trait>(
&'life0 mut self,
count: usize
) -> Pin<Box<dyn Future<Output = Result<P::SetupStorage, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_setup_output<'life0, 'async_trait>(
&'life0 mut self,
count: usize
) -> Pin<Box<dyn Future<Output = Result<P::SetupStorage, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called in the online phase for each layer. This method can be used to interleave the setup and online phase.