decentralized-identity / did-jwt

Create and verify DID verifiable JWT's in Javascript
Apache License 2.0
337 stars 71 forks source link

[proposal] add support for Multikey #304

Closed mirceanis closed 10 months ago

mirceanis commented 10 months ago

Some DIDDocuments can use Multikey as a verification method type. The key type must then be inferred from the multibase(multicodec(keyBytes)) encoding found in the publicKeyMultibase property of the verification method.

Describe the solution you'd like It should be possible to verify tokens whose issuer DID document contain Multikey verification methods at least pointing to the key types that are already supported.

Describe alternatives you've considered Until #234 is fixed, the verification logic is hardcoded, so a fix must be provided here.

Additional context https://www.w3.org/TR/vc-data-integrity/#multikey https://identity.foundation/peer-did-method-spec/#resolving-a-didpeer2 https://w3c-ccg.github.io/did-method-key/#document-creation-algorithm

uport-automation-bot commented 10 months ago

:tada: This issue has been resolved in version 8.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: