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

Add initial files. #1

Merged
merged 13 commits into from
Jan 18, 2024
Merged

Add initial files. #1

merged 13 commits into from
Jan 18, 2024

Conversation

davidlehn
Copy link
Member

No description provided.

davidlehn and others added 7 commits October 11, 2023 23:19
- Patch jwk npm library.
- Rename fromJsonWebKey2020 to handler in use method.
- Remove requirement for algorithm and handler in use method.
- Resolve DID document and key consistent with handler.
- Write unit tests.
@kezike kezike requested a review from dlongley October 25, 2023 17:51
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

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

Some minor changes are needed to use the latest JsonWebKey stuff, but otherwise I can approve this as a baseline to get things kicked off.

@davidlehn, if you can look at the details more closely +1.

expect(didDocument.id).to.equal(did);
expect(didDocument['@context']).to.eql([
'https://www.w3.org/ns/did/v1',
'https://w3id.org/security/suites/jws-2020/v1'
Copy link
Member

Choose a reason for hiding this comment

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

jws-2020 has been abandoned. The new context for a JsonWebKey is here: https://w3id.org/security/jwk/v1

It doesn't have a date in its type anymore either, just JsonWebKey. You'll want to take a look at the context.

Copy link
Contributor

Choose a reason for hiding this comment

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

I have opened #2 for this issue

@brianorwhatever
Copy link
Contributor

I have resolved the linting issues and created an issue to update to use the latest version of JsonWebKey. I think we should merge this in and create a new PR to implement those changes

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

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

I'm ok to accept this for a 1.0 release -- we can iterate from there with breaking changes as needed.

@davidlehn davidlehn merged commit 1b74e7e into main Jan 18, 2024
5 checks passed
@davidlehn davidlehn deleted the initial branch January 22, 2024 22:21
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

5 participants