-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document type repository #401
Comments
So I think what I had in mind was something like this (pseudo-code):
which is not dependent on mdoc-format at all which is important in the context of Issue #402. For each credential format we would have companion classes e.g.
which includes the mapping back to the generic document for each data element. With this in hand, we can automate the "add new self-signed credential" screens insofar that the UI can be generated entirely from a Open questions
It would also be nice to have something like |
We probably also want to think more about |
Maybe we should have a common base class for different document types. Is an mdoc document part of a bigger non-mdoc document that has also non-mdoc attributes? Or is an mdoc a specific type of document? If mdoc is a specific type of document, maybe the following proposal would work:
|
I must admit I'm not a fan of the inheritance and I don't think it really gives us anything tangible except for extra complexity. Crucially, I also don't think it supports the case where we define an abstract Thinking more about it we should probably also use the word
with specializations |
Thanks, I misunderstood the previous proposal, thought that the mdoc version and the W3C VC version would be a different instance of documenttype/credentialtype... |
Right now the knowledge of different mdoc document types, their namespaces, and data elements is encoded in both the wallet (in
wallet/documentdata/Request*.kt
) and in the reader (indocument/Request*.kt
). We should have a couple of simple classes in the library that both apps can use.There should be a
DocumentTypeRepository
which can be used to query available document types, returns instances ofDocumentType
. TheDocumentType
class should contain namespaces / data elements specific to the doctype. For each data element, there should be a human-readable localized name (e.g. "Driving Privileges" vsdriving_privileges
) and there should be room to add things like icons, descriptions, and other things for each data element. For example, we need the the human-readable name for the Android Credman integration in Issue #353.The text was updated successfully, but these errors were encountered: