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

post /credentials #183

Open
ssi-vc-dev opened this issue Apr 1, 2024 · 1 comment
Open

post /credentials #183

ssi-vc-dev opened this issue Apr 1, 2024 · 1 comment

Comments

@ssi-vc-dev
Copy link

ssi-vc-dev commented Apr 1, 2024

Hello guys.
I have a question regarding the POST /credentials request the mobile wallet sends to the agent.

I can see that a request with the following body example is sent

{
    "types": [
        "GuestCredential"
    ],
    "format": "jwt_vc_json",
    "proof": {
        "proof_type": "jwt",
        "jwt":"eyJ0eXAiOiJvcG..."
    }
}

And as a response the agent issues credential.
Any hint, where in the code are you generating the jwt (proof.jwt), are you using some library from the sphereon SDK for it?

I appreciate any help you can provide.

@flarocca
Copy link

@ssi-vc-dev Hey! Hi! What are you trying to do exactly?
JWTs can be generated with any library as long as it supports the algorithm you want to use, Sphereon SDK has some utilities that can help. You could also use @web5/credentials.
Eventually you could also use more native libraries such as jose or even jsonwebtoken (altough I am not sure it supports the ones normally used for VCs)

If you are looking for a simple example, check this out. It is a PoC I am working on. Be patient or reach me out if you need help as It is not finished yet (no README at all).

Disclaimer:
I am not an Sphereon developer, but I am getting involved as I am diving into this subject!

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