logo
pub trait ProofSuite {
    fn sign<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        document: &'life1 (dyn LinkedDataDocument + Sync),
        options: &'life2 LinkedDataProofOptions,
        resolver: &'life3 dyn DIDResolver,
        key: &'life4 JWK,
        extra_proof_properties: Option<Map<String, Value>>
    ) -> Pin<Box<dyn Future<Output = Result<Proof, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
;
fn prepare<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        document: &'life1 (dyn LinkedDataDocument + Sync),
        options: &'life2 LinkedDataProofOptions,
        resolver: &'life3 dyn DIDResolver,
        public_key: &'life4 JWK,
        extra_proof_properties: Option<Map<String, Value>>
    ) -> Pin<Box<dyn Future<Output = Result<ProofPreparation, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
;
fn complete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        preparation: ProofPreparation,
        signature: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Proof, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        proof: &'life1 Proof,
        document: &'life2 (dyn LinkedDataDocument + Sync),
        resolver: &'life3 dyn DIDResolver
    ) -> Pin<Box<dyn Future<Output = Result<VerificationWarnings, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Required methods

Implementors