Open JelleMillenaar opened 3 years ago
Just to make sure I understand:
created
and updated
fields in did::Properties
should be moved to a new DIDMetadata
struct, correct?Properties
are the the first generic parameter to the "core" Document
type, we would likely need to introduce a new type param to Document
to be generic over a specific "metadata", correct?And one other question: Would we want unique "input metadata" and "output metadata" types? The new spec says "Input and output metadata is often involved during the DID Resolution"
- Reading through the code it looks like the created and updated fields in did::Properties should be moved to a new DIDMetadata struct, correct?
Yes and there are already distinct types for this, just not really utilized - resolution is still awkward and easier if you use the Client
directly and not the generic DID resolver (the difference is mostly just the input/output formats)
- Since currently the Properties are the the first generic parameter to the "core" Document type, we would likely need to introduce a new type param to Document to be generic over a specific "metadata", correct?
The data structures stored on the Tangle are going to change soon(ish); this will make Properties
redundant and provide much clearer separation between the Document and metadata.
we probably won't need to use generics
Description
Implement JSON-LD output format for DID Documents. Previous iteration of this Issue held more DID Core updates, but they have either been tackled or have their own issues right now.
Resources
To-do list
Create a task-specific to-do list . Please link PRs that match the To-do list item behind the item after it has been submitted.
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.