Trait TrustchainHTTP

Source
pub trait TrustchainHTTP {
    // Required methods
    fn resolve_did<'life0, 'life1, 'async_trait>(
        did: &'life0 str,
        resolver: &'life1 dyn TrustchainResolver,
    ) -> Pin<Box<dyn Future<Output = Result<ResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait;
    fn resolve_chain<'life0, 'life1, 'async_trait, T>(
        did: &'life0 str,
        verifier: &'life1 TrustchainVerifier<T>,
        root_event_time: Timestamp,
    ) -> Pin<Box<dyn Future<Output = Result<DIDChainResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
       where T: 'async_trait + DIDResolver + Send + Sync,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn resolve_bundle<'life0, 'life1, 'async_trait, T>(
        did: &'life0 str,
        verifier: &'life1 TrustchainVerifier<T>,
    ) -> Pin<Box<dyn Future<Output = Result<VerificationBundle, TrustchainHTTPError>> + Send + 'async_trait>>
       where T: 'async_trait + DIDResolver + Send + Sync,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A HTTP API for resolving DID documents, chains, and verification bundles.

Required Methods§

Source

fn resolve_did<'life0, 'life1, 'async_trait>( did: &'life0 str, resolver: &'life1 dyn TrustchainResolver, ) -> Pin<Box<dyn Future<Output = Result<ResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait,

Resolves a DID document.

Source

fn resolve_chain<'life0, 'life1, 'async_trait, T>( did: &'life0 str, verifier: &'life1 TrustchainVerifier<T>, root_event_time: Timestamp, ) -> Pin<Box<dyn Future<Output = Result<DIDChainResolutionResult, TrustchainHTTPError>> + Send + 'async_trait>>
where T: 'async_trait + DIDResolver + Send + Sync, 'life0: 'async_trait, 'life1: 'async_trait,

Resolves a DID chain.

Source

fn resolve_bundle<'life0, 'life1, 'async_trait, T>( did: &'life0 str, verifier: &'life1 TrustchainVerifier<T>, ) -> Pin<Box<dyn Future<Output = Result<VerificationBundle, TrustchainHTTPError>> + Send + 'async_trait>>
where T: 'async_trait + DIDResolver + Send + Sync, 'life0: 'async_trait, 'life1: 'async_trait,

Resolves a DID verification bundle.

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§