Crate ndn_did

Crate ndn_did 

Source
Expand description

Thin re-export shim — the ndn-did crate has been merged into ndn-security.

All types are now available under ndn_security::did or, for convenience, as top-level re-exports from ndn_security.

This crate is kept for backwards compatibility. New code should use ndn_security::did directly.

Modules§

convert
Conversion between NDN Certificates and DidDocuments.
document
W3C DID Core document types.
encoding
Encoding and decoding between NDN Names and did:ndn DID strings.
metadata
W3C DID Core resolution metadata types.
resolver
DidResolver trait and built-in resolver implementations.
url
DID URL parsing and dereferencing.

Structs§

DidDocument
A W3C DID Document.
DidDocumentMetadata
Metadata about the DID Document itself (not the DID or resolution process).
DidResolutionMetadata
Metadata about the DID resolution process itself.
DidResolutionOptions
Input options for DID resolution, per W3C DID Core §7.1.
DidResolutionResult
The complete output of a DID resolution operation.
DidUrl
A parsed DID URL (DID + optional path, query, fragment).
KeyDidResolver
Resolves did:key DIDs locally without any network access.
NdnDidResolver
Resolves did:ndn DIDs by sending NDN Interests.
Service
A service endpoint in a DID Document.
UniversalResolver
A resolver that dispatches to method-specific resolvers.
VerificationMethod
A verification method entry in a DID Document.

Enums§

DereferencedResource
The resource identified by a dereferenced DID URL.
DidController
The controller property — either a single DID string or a set of DIDs.
DidError
High-level DID error for use in application code.
DidResolutionError
Standardized DID resolution error codes per W3C DID Core §7.1.2.
ServiceEndpoint
A service endpoint value.
VerificationRef
A reference to a verification method — either embedded or a URI reference.

Traits§

DidResolver
A resolver that can dereference a DID string to a DidResolutionResult.

Functions§

build_zone_did_document
Build a W3C DID Document for a self-certifying [ZoneKey].
build_zone_succession_document
Build a deactivated zone DID Document expressing zone succession.
cert_to_did_document
Convert an NDN certificate to a W3C DidDocument.
deref_did_url
Dereference a DID URL against an already-resolved DID Document.
deref_did_url_or_document
Convenience: dereference without a fragment, returning the document.
did_document_to_trust_anchor
Attempt to reconstruct a trust anchor Certificate from a DidDocument.
did_to_name
Decode a did:ndn DID string back to an NDN Name.
name_to_did
Encode an NDN Name as a did:ndn DID string.