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 andDidDocuments. - document
- W3C DID Core document types.
- encoding
- Encoding and decoding between NDN
Names anddid:ndnDID strings. - metadata
- W3C DID Core resolution metadata types.
- resolver
DidResolvertrait and built-in resolver implementations.- url
- DID URL parsing and dereferencing.
Structs§
- DidDocument
- A W3C DID Document.
- DidDocument
Metadata - Metadata about the DID Document itself (not the DID or resolution process).
- DidResolution
Metadata - Metadata about the DID resolution process itself.
- DidResolution
Options - Input options for DID resolution, per W3C DID Core §7.1.
- DidResolution
Result - The complete output of a DID resolution operation.
- DidUrl
- A parsed DID URL (DID + optional path, query, fragment).
- KeyDid
Resolver - Resolves
did:keyDIDs locally without any network access. - NdnDid
Resolver - Resolves
did:ndnDIDs by sending NDN Interests. - Service
- A service endpoint in a DID Document.
- Universal
Resolver - A resolver that dispatches to method-specific resolvers.
- Verification
Method - A verification method entry in a DID Document.
Enums§
- Dereferenced
Resource - The resource identified by a dereferenced DID URL.
- DidController
- The
controllerproperty — either a single DID string or a set of DIDs. - DidError
- High-level DID error for use in application code.
- DidResolution
Error - Standardized DID resolution error codes per W3C DID Core §7.1.2.
- Service
Endpoint - A service endpoint value.
- Verification
Ref - 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
Certificatefrom aDidDocument. - did_
to_ name - Decode a
did:ndnDID string back to an NDNName. - name_
to_ did - Encode an NDN
Nameas adid:ndnDID string.