Expand description
§DID Resolver
This crate provides common utilities for the Credibil project and is not intended to be used directly.
The crate provides a DID Resolver trait and a set of default implementations for resolving DIDs.
See DID resolution fpr more.
Structs§
- Create
Options - Options that can be provided when creating a DID document.
- Dereferenced
Dereferencedcontains the result of dereferencing a DID URL.- DidKey
DidKeyprovides a type for implementingdid:keyoperation and resolution methods.- DidWeb
DidWebprovides a type for implementingdid:weboperation and resolution methods.- Document
- DID Document
- Metadata
- DID document metadata.
- Options
- Used to pass addtional values to a
resolveanddereferencemethods. Any properties used should be registered in the DID Specification Registries. - Public
KeyJwk - Simplified JSON Web Key (JWK) key structure.
- Resolved
- Returned by
resolveDID methods.
Enums§
- Content
Type - The Media Type of the returned resource.
- Curve
- Cryptographic curve type.
- Error
- DID resolution error codes
- KeyPurpose
- The purpose the requested key material will be used for.
- KeyType
- Cryptographic key type.
- Resource
- Resource represents the DID document resource returned as a result of DID dereferencing. The resource is a DID document or a subset of a DID document.
Traits§
- DidOperator
DidOperatoris used by implementers to provide material required for DID document operations — creation, update, etc.- DidResolver
DidResolveris used to proxy the resolution of a DID document. Resolution can either be local as in the case ofdid:key, or remote as in the case ofdid:webordid:dht.
Functions§
- dereference
- Dereference a DID URL into a resource.
- resolve
- Resolve a DID to a DID document.
Type Aliases§
- Result
- Returns DID-specific errors.