انتقل إلى المحتوى الرئيسي

identifiers

📄️Read the exact DID document that will be published

The document as it will be published, the URLs it will be served at and the keys behind it. Reading it is what allows publication: publish is refused until the current document has been previewed, and a document rendered again since the last preview needs a new one. `document` is canonical JSON text; parse it to read it, and compare `documentDigest` with the SHA-256 of its bytes to know nothing changed it on the way. For a `webvh` identifier, `parallelDocument` is the `did:web` form served beside the log. An identifier still in `placing` has no document yet and is refused with 409; read the identifier until it is `prepared`.

📄️Begin a key rotation for a published identifier

Requires `Idempotency-Key`; takes no body. Generates a new assertion key and renders the document again with it. The identifier returns to state `prepared` and the version already published stays served; preview the new document, then publish it. For `webvh` the publication appends one log entry, signed by the current update key, that a verifier can check against the entry before. For `web` it overwrites the document, and nothing lets a verifier tell that from a substitution. The replaced key is kept and listed in `retiredAssertionKeyIds`, because a credential signed under it must stay verifiable. The host and the method cannot be changed. An identifier that is not `published` is refused with 409.