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 support for Multikey in did:jwk. #578

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Conversation

timothee-haudebourg
Copy link
Contributor

Currently did:jwk only supports the JsonWebKey2020 verification method format, but since it is based on did:key there is no reason for it to be the only format. In particular, Multikey is a widely used key format, which this PR adds support for.

In addition:

  • I've made so VerificationMethodDIDResolver uses the accept option to select the wanted key format from the DID resolver.
  • I moved the Multikey and (resp. JsonWebKey2020) variant on top of AnyMethod (resp. AnyJwkMethod) so it is selected in priority.

@timothee-haudebourg timothee-haudebourg merged commit 7a944d7 into main Jul 12, 2024
4 checks passed
@timothee-haudebourg timothee-haudebourg deleted the did-jwk-multikey branch July 12, 2024 09:37
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