Skip to main content

ProverService

Trait ProverService 

Source
pub trait ProverService: Send + Sync {
    // Required method
    fn generate_proof<'a>(
        &'a self,
        jwt: &'a str,
        ephemeral_key: &'a EphemeralKeyPair,
        pepper: &'a Pepper,
    ) -> Pin<Box<dyn Future<Output = AptosResult<ZkProof>> + Send + 'a>>;
}
Available on crate feature keyless only.
Expand description

Service for generating zero-knowledge proofs.

Required Methods§

Source

fn generate_proof<'a>( &'a self, jwt: &'a str, ephemeral_key: &'a EphemeralKeyPair, pepper: &'a Pepper, ) -> Pin<Box<dyn Future<Output = AptosResult<ZkProof>> + Send + 'a>>

Generates the proof for keyless authentication.

Implementors§