Skip to content
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

Consider use of "DID method enum" spec #72

Open
peacekeeper opened this issue Oct 20, 2024 · 6 comments
Open

Consider use of "DID method enum" spec #72

peacekeeper opened this issue Oct 20, 2024 · 6 comments
Assignees

Comments

@peacekeeper
Copy link

At DIF, we have a mini-spec for a data structure that can enumerate which DID methods are supported. The idea is that in addition to just listing the method names themselves, there could be a need to express support for certain "features", e.g. which networks in did:indy are supported, which key types in did:key, etc.

See example here:
https://github.com/decentralized-identity/did-method-enum/blob/main/spec.md#combined-example

This "DID method enum" data structure could potentially be returned by the endpoint here that expresses support for DID methods:

@andorsk
Copy link
Contributor

andorsk commented Nov 7, 2024

I think this is a good idea and I love the fact it's borrowing from prior art. I will prepare a PR with this suggestion in mind.

@andorsk andorsk self-assigned this Nov 7, 2024
@andorsk
Copy link
Contributor

andorsk commented Nov 28, 2024

I have a version of this but it comes along with substantial larger changes to the openapi yaml spec. Will reference this with the larger changes.

@mjfelis
Copy link

mjfelis commented Dec 5, 2024

@peacekeeper what should answer Trust Registries that support ANY DID method?

@peacekeeper
Copy link
Author

peacekeeper commented Dec 16, 2024

@peacekeeper what should answer Trust Registries that support ANY DID method?

Good question, at the moment the DID method enum spec doesn't seem to mention this case.

I suppose it would work like this:

{
    "did_methods": [
        {
            "prefix": "did:"
        }
    ]
}

I.e. any DID that starts with did: is supported, i.e. any DID method.

@darrellodonnell
Copy link
Collaborator

darrellodonnell commented Dec 16, 2024

how does did:key: in the example above convert to "any DID method"? It seems to imply did:key only.

@peacekeeper
Copy link
Author

@darrellodonnell Sorry I meant to write "prefix": "did:" only.

I fixed it now in my comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants