Skip to main content

ProverBackend

Trait ProverBackend 

Source
pub trait ProverBackend: Send + Sync {
    // Required methods
    fn prove<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        zkir_json: &'life1 str,
        witness_json: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<ProofOutput>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        zkir_json: &'life1 str,
        witness_json: &'life2 str,
        proof_hex: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn circuit_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        zkir_json: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<CircuitInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn health<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<BackendHealth>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn name(&self) -> &'static str;
}

Required Methods§

Source

fn prove<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, zkir_json: &'life1 str, witness_json: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<ProofOutput>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, zkir_json: &'life1 str, witness_json: &'life2 str, proof_hex: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn circuit_info<'life0, 'life1, 'async_trait>( &'life0 self, zkir_json: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<CircuitInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn health<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<BackendHealth>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn name(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§