Expand description
DID Universal Resolver Cache Client SDK
Used to easily connect to the DID Universal Resolver Cache.
§Crate features
As this crate can be used either natively or in a WASM environment, the following features are available:
- local
- default - Enables the local mode of the SDK. This is the default mode.
- network
- Enables the network mode of the SDK. This mode requires a run-time service address to connect to.
- This feature is NOT supported in a WASM environment. Will cause a compile error if used in WASM.
Modules§
- config
- Handles the initial configuration for the DID Cache Client.
- errors
- Error types for the DID Cache Client SDK
- network_
resolvers - Network DID method resolvers implementing
AsyncResolver.
Structs§
- DIDCache
Client - DIDCacheClient is how you interact with the DID Universal Resolver Cache config: Configuration for the SDK cache: Local cache for resolved DIDs network_task: OPTIONAL: Task to handle network requests network_rx: OPTIONAL: Channel to listen for responses from the network task
- Resolve
Response
Enums§
- DIDMethod
- DID Methods supported by the DID Universal Resolver Cache
- Method
Name - Discriminant for DID method types — used as HashMap key for resolver dispatch.
- Resolver
Error - Error type for resolver failures.
Traits§
- Async
Resolver - Asynchronous DID resolver for methods that require IO.
- Resolver
- Synchronous DID resolver for methods that require no IO.
Type Aliases§
- Resolution
- Result type alias for resolver return values.