NdnDidDocFetchFn

Type Alias NdnDidDocFetchFn 

Source
pub type NdnDidDocFetchFn = Arc<dyn Fn(Name) -> Pin<Box<dyn Future<Output = Option<Vec<u8>>> + Send>> + Sync + Send>;
Expand description

Fetch an NDN DID Document Data packet by name (used for zone DIDs).

The returned bytes should be the JSON-LD application/did+ld+json content of a signed NDN Data packet at the zone root name.

Aliased Typeยง

pub struct NdnDidDocFetchFn { /* private fields */ }