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

Fetch the issuers key via vc issuer metadata #49

Open
cre8 opened this issue Jul 15, 2024 · 2 comments
Open

Fetch the issuers key via vc issuer metadata #49

cre8 opened this issue Jul 15, 2024 · 2 comments

Comments

@cre8
Copy link

cre8 commented Jul 15, 2024

There are multiple ways to reference the public key of the issuer, one way is the jwt vc issuer metadata: https://www.ietf.org/archive/id/draft-ietf-oauth-sd-jwt-vc-04.html#name-jwt-vc-issuer-metadata
It would be cool when the tool will try to fetch and insert the public key automatically, in case the url is callable via the public internet.

The fetching of the public key is quite simple, see: https://github.com/cre8/credhub/blob/72d1cf974af085fbecdd7537e5053e7de287ce86/apps/verifier-backend/src/app/resolver/resolver.service.ts#L60

@lukasjhan
Copy link
Owner

Thank you @cre8.

As you mentioned before in openwallet-foundation-labs/sd-jwt-js#177 (comment)
There are 3 ways to fetch public keys. I have to do it all at once. :)

@cre8
Copy link
Author

cre8 commented Jul 15, 2024

Thank you @cre8.

As you mentioned before in openwallet-foundation-labs/sd-jwt-js#177 (comment) There are 3 ways to fetch public keys. I have to do it all at once. :)

Well, the vc fetch metadata is less than 20 lines of code.... good luck with all the DID methods out there :D

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

No branches or pull requests

2 participants