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

Update did-core-v1 context #17

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

clehner
Copy link
Collaborator

@clehner clehner commented May 18, 2021

This updates the repo's local copy of the DID Core v1 context, according to DID Core's Candidate Recommendation: w3c/did-extensions#277.

I updated the test DID document to define terms in the local context that are no longer defined in DID Core, to preserve the existing data structure. The signatures on the DID document don't actually appear to be verified in the tests, but the N-Quads can be compared using JSON-LD Playground:

@@ -1,7 +1,24 @@
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld"
"https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems better to fix these issue in the context, potentially also swiching to a w3id.org redirect

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#24 should enable removing these inline definitions. (Except for publicKey which is legacy and this document should probably be changed to use verificationMethod instead.)

@clehner clehner marked this pull request as draft December 1, 2021 03:37
@clehner clehner marked this pull request as ready for review December 1, 2021 03:48
Define removed terms in DID document local context, to preserve existing
structure.
@clehner
Copy link
Collaborator Author

clehner commented Dec 17, 2021

Rebasing and merging.

@clehner clehner merged commit 8fb1ce0 into decentralized-identity:master Dec 17, 2021
@github-pages github-pages bot temporarily deployed to github-pages December 17, 2021 21:45 Inactive
@clehner clehner deleted the fix/did-core-v1-cr branch December 20, 2021 15:01
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