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

Use new lds-jws2020 v1 context, conditionally #322

Merged
merged 2 commits into from Oct 20, 2021
Merged

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Oct 18, 2021

In addition to the currently bundled context file (https://w3c-ccg.github.io/lds-jws2020/contexts/lds-jws2020-v1.json), there is a different one registered under w3id.org: https://w3id.org/security/suites/jws-2020/v1 (redirects to https://w3c-ccg.github.io/lds-jws2020/contexts/v1). This second, registered one is the one that is used in JWS-Test-Suite. This PR adds it to the repo and updates the JsonWebSignature2020 implementation to use it instead of the other one.

Additionally, only add the context URI to the newly created proof objects if the parent linked data document doesn't already use this context URI. This is because in JWS-Test-Suite, the input credentials already have the context URI, so adding it again is redundant/unnecessary.

@clehner clehner changed the title Use new lds-jws2020 v1 context Use new lds-jws2020 v1 context, conditionally Oct 18, 2021
@clehner clehner marked this pull request as ready for review October 18, 2021 18:12
@clehner clehner requested a review from sbihel October 18, 2021 18:14
@clehner clehner merged commit 527309e into main Oct 20, 2021
@clehner clehner deleted the feat/lds-jws2020-new branch October 20, 2021 12:57
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.

None yet

2 participants