Crate credibil_did

Crate credibil_did 

Source
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§

CreateOptions
Options that can be provided when creating a DID document.
Dereferenced
Dereferenced contains the result of dereferencing a DID URL.
DidKey
DidKey provides a type for implementing did:key operation and resolution methods.
DidWeb
DidWeb provides a type for implementing did:web operation and resolution methods.
Document
DID Document
Metadata
DID document metadata.
Options
Used to pass addtional values to a resolve and dereference methods. Any properties used should be registered in the DID Specification Registries.
PublicKeyJwk
Simplified JSON Web Key (JWK) key structure.
Resolved
Returned by resolve DID methods.

Enums§

ContentType
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
DidOperator is used by implementers to provide material required for DID document operations — creation, update, etc.
DidResolver
DidResolver is used to proxy the resolution of a DID document. Resolution can either be local as in the case of did:key, or remote as in the case of did:web or did: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.