You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
fixes#304
BREAKING CHANGE: The return types have changed for of `extractPublicKeyBytes()` and `multibaseToBytes()` from Uint8Arrays to Objects containing the `keyBytes: Uint8Array` and a decoded or inferred `keyType: string | undefined`
fixes#304
BREAKING CHANGE: The return types have changed for of `extractPublicKeyBytes()` and `multibaseToBytes()` from Uint8Arrays to Objects containing the `keyBytes: Uint8Array` and a decoded or inferred `keyType: string | undefined`
# [8.0.0](7.4.7...8.0.0) (2024-01-18)
### Features
* add support for Multikey ([#305](#305)) ([20bbc3e](20bbc3e)), closes [#304](#304)
### BREAKING CHANGES
* The return types have changed for of `extractPublicKeyBytes()` and `multibaseToBytes()` from Uint8Arrays to Objects containing the `keyBytes: Uint8Array` and a decoded or inferred `keyType: string | undefined`
Some DIDDocuments can use
Multikey
as a verification method type. The key type must then be inferred from themultibase(multicodec(keyBytes))
encoding found in thepublicKeyMultibase
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
The text was updated successfully, but these errors were encountered: