Trait ProverService
Source pub trait ProverService {
// Required methods
fn setup<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: SetupRequest,
) -> Pin<Box<dyn Future<Output = Result<SetupResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ready<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: ReadyRequest,
) -> Pin<Box<dyn Future<Output = Result<ReadyResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn prove_core<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: ProveCoreRequest,
) -> Pin<Box<dyn Future<Output = Result<ProveCoreResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn prove_core_stateless<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: ProveCoreRequest,
) -> Pin<Box<dyn Future<Output = Result<ProveCoreResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn compress<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: CompressRequest,
) -> Pin<Box<dyn Future<Output = Result<CompressResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn shrink<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: ShrinkRequest,
) -> Pin<Box<dyn Future<Output = Result<ShrinkResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn wrap<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
req: WrapRequest,
) -> Pin<Box<dyn Future<Output = Result<WrapResponse, TwirpErrorResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}