Skip to content

[Question] What type is a DID #889

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

Open
melvincarvalho opened this issue Apr 6, 2025 · 3 comments
Open

[Question] What type is a DID #889

melvincarvalho opened this issue Apr 6, 2025 · 3 comments
Labels
pending close Issue will be closed shortly if no objections

Comments

@melvincarvalho
Copy link
Contributor

I wasn’t able to find the @type of a DID. Are there any recommendations on what should be used here? Alternatively, is it acceptable to define a custom type?

@peacekeeper
Copy link
Contributor

@melvincarvalho my understanding is that a @type statement wouldn't indiciate the type of the DID, but rather the type of the subject that is identified by the DID. Your question is a bit like asking what is the @type of a URI.

From the spec:

Anything can be the subject of a DID: person, group, organization, thing, or concept.

So it can really be anything. In most cases, there is no @type in a DID document, and that kind of information about a subject is expressed elsewhere, such as in Verifiable Credentials.

@melvincarvalho
Copy link
Contributor Author

Thanks @peacekeeper I guess there's no standard way, then. We could do something in our own context, if necessary. This issue can be closed unless someone wants to add a comment.

@peacekeeper peacekeeper added the pending close Issue will be closed shortly if no objections label Apr 8, 2025
@jandrieu
Copy link
Contributor

Agreed. Type in a DID document is problematic.

As @peacekeeper mentioned, you can do it with a custom context, but, IMO, you probably don't want to do that. I'd recommend keeping attributes about subjects in VCs issued "to" a DID representing that subject, which have much better privacy characteristics than DID Documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending close Issue will be closed shortly if no objections
Projects
None yet
Development

No branches or pull requests

3 participants