decentralized-identity / did-jwt-vc

Create and verify W3C Verifiable Credentials and Presentations in JWT format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow adding header values on createVerifiableCredentialJwt

sondreb opened this issue ยท comments

The createVerifiableCredentialJwt method does not have ability to supply header values. This means it's not possible to use it go generate a VC that should be used for DID Configuration.

Screenshot from the specification:

image

https://identity.foundation/.well-known/resources/did-configuration/#json-web-token-proof-format

The createJWT method that createVerifiableCredentialJwt calls does support adding header values, but is not exposed and made available.

I don't think this should always be added to the VCs, but when it's needed for this use case, it's mandatory.

๐ŸŽ‰ This issue has been resolved in version 2.1.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€