Module convert

Module convert 

Source
Expand description

Conversion between NDN Certificates and DidDocuments.

An NDN certificate is structurally equivalent to a DID Document: the namespace IS the identifier, and the certificate’s public key is the verification method. This module makes that equivalence explicit and provides a builder for zone-based DID Documents.

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.
did_document_to_trust_anchor
Attempt to reconstruct a trust anchor Certificate from a DidDocument.