Closed vitorpamplona closed 1 year ago
-1 to detaching the
proof
in this way. You can include it indidDocument
I know that in VCs and Data Integrity, the assumption has always been that the proof
property is included in the same JSON-LD object that it covers, but I would contrast that with the initial design that we had when we introduced DID metadata (based on this proposal: https://github.com/w3c/did-core/issues/65#issuecomment-597030882). We said at that time that a proof is not data about the subject, but rather metadata about either the document, or the resolution process, and that therefore it belongs into one of the two metadata buckets.
Semantically, having the proof
inside the DID document would be a bit like having the proof
inside the credentialSubject
object, no?
Structurally, having the proof
outside the DID document would make it easier to cleanly distinguish between proofs that are added by the DID controller or the DID method (DID document metadata), and proofs that are added by a resolver (DID resolution metadata).
From a pure RDF/JSON-LD perspective, I think there shouldn't be a strict necessity to have the proof
object directly under the object it applies to, or?
@peacekeeper Thanks Markus! I fixed them all.
I think the text could use a lot of improvements outside the context of this PR to be better aligned with the DID Resolution specification. I am just trying to not change everything. :)
For instance, I think we need to force DNSSec just like we force HTTPS. But that is for another day.
Not really interested in breaking changes right now
Hi Mike, any suggestion on how to add the DID Document Metadata with backwards compatibility?
Doesn't this prevent the actual resolver from adding its own metadata?
Doesn't this prevent the actual resolver from adding its own metadata?
There are two "buckets" of metadata. DID document metadata and DID resolution metadata. Metadata about the resolution process itself should only go into the second bucket.
I suggest we close this PR, and perhaps tackle some of the concepts addressed here using additional headers.
Closing this PR (it does not seem like it can reach consensus).
I am open to discussing on issues, feel free to file, and link here.
Fixes #20:
did.json
document to become a DID Resolution Result that contains a DID Document and not the DID Document itself.Impact on current implementers
This is a backward incompatible change.
Current producers must wrap the root property of their
did.json
file into adidDocument
property.DID Resolvers should check for the presence of a
didDocument
property to indicate compliance of the producer with this new version. If the property is present, an optionaldidDocumentMetadata
property can also be available and should be parsed accordingly.The spec's
did.json
goes from:To: