Identity
DID Document
Also known as: DID doc
A JSON-LD document that declares a DID's public keys, services, and relationships; served from a resolvable endpoint.
A DID document describes a Decentralized Identifier. It is itself a JSON-LD document with a fixed schema defined by W3C DID Core. The core fields are: id (the DID itself), verificationMethod (list of public keys with their types and controllers), assertionMethod / authentication / keyAgreement (purpose bindings pointing at verificationMethod entries), and service (endpoints for interaction).
For did:web, the DID document is a static JSON file served at a well-known HTTPS path. LearnCoin's lives at https://learncoin.me/.well-known/did.json. Every public key used to sign a LearnCoin credential is declared in that document as a verificationMethod with a stable fragment (for example #tenant-ewance).
The DID document is the trust anchor for every credential verification. When a verifier receives a credential whose proof.verificationMethod is did:web:learncoin.me#tenant-ewance, it resolves the DID, finds the fragment, pulls the publicKeyJwk, and validates the cryptographic signature against that key.
Related terms