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

chore: enable optional verification_method for DID Document #233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enmand
Copy link
Contributor

@enmand enmand commented Jun 13, 2024

Re. https://www.w3.org/TR/did-core/#did-document-properties, the veriication_method property is not required. In fact, the TBD-hosted DID document used is tests does not include the Verification method.

This PR makes it optional, especially during (de-)serialization to ensure compatibility with the spec.

Note: the web5-spec disagrees with the DID-core spec on this. See #231 for discussion and #190 (comment) for additional context.

Re. https://www.w3.org/TR/did-core/#did-document-properties, the
veriication_method property is not required. In fact, the TBD-hosted
DID document used is tests does not include the Verification method.

Make it optional, especially during (de-)serialization to ensure
compatibility with the spec.

Note: the web5-spec disagrees with the DID-core spec on this, it may
be a legacy but it's possible the web5-spec should be updated as well
to match did-core.
@enmand enmand changed the title fix: verification_method is not required for DID Document chore: verification_method is not required for DID Document Jun 13, 2024
@enmand enmand changed the title chore: verification_method is not required for DID Document chore: enable optional verification_method for DID Document Jun 13, 2024
@KendallWeihe
Copy link
Contributor

Thanks for splitting this out @enmand 👍

This one may linger for a bit, while we work through a few higher priority items. And once we move forward with this, I want to consider implications such as the three I listed here. Also, take not of this comment -- specifically, for did:dht we should ensure that we are never in a situation where we make available a did:dht Document with an empty verification_method array, because did:dht requires at least 1 vm (the identity key).

@KendallWeihe KendallWeihe mentioned this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants