Holder

Trait Holder 

Source
pub trait Holder: Subject {
    // Required method
    fn sign_presentation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, T>(
        &'life0 self,
        presentation: &'life1 Presentation,
        linked_data_proof_options: Option<LinkedDataProofOptions>,
        key_id: Option<&'life2 str>,
        resolver: &'life3 T,
        context_loader: &'life4 mut ContextLoader,
    ) -> Pin<Box<dyn Future<Output = Result<Presentation, HolderError>> + Send + 'async_trait>>
       where T: 'async_trait + DIDResolver,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

A holder signs a presentation to generate a verifiable presentation.

Required Methods§

Source

fn sign_presentation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, T>( &'life0 self, presentation: &'life1 Presentation, linked_data_proof_options: Option<LinkedDataProofOptions>, key_id: Option<&'life2 str>, resolver: &'life3 T, context_loader: &'life4 mut ContextLoader, ) -> Pin<Box<dyn Future<Output = Result<Presentation, HolderError>> + Send + 'async_trait>>
where T: 'async_trait + DIDResolver, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Attests to a given presentation of one or many credentials returning the presentation with a proof. The @context of the presentation has linked-data fields strictly checked as part of proof generation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§