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

VC Data Model Example #36

Open
quartzjer opened this issue Jan 10, 2022 · 3 comments
Open

VC Data Model Example #36

quartzjer opened this issue Jan 10, 2022 · 3 comments
Assignees
Labels
JPT JSON Proof Token
Milestone

Comments

@quartzjer
Copy link
Collaborator

Placeholder to track adding a full example of a JPT using the VC Data Model into the draft.

@quartzjer quartzjer added the JPT JSON Proof Token label Jan 10, 2022
@Sakurann
Copy link

Because JWP payloads are only contain claims, would the body of JWT-VC be equivalent to the Header of a JWP-VC?

Sample Header of JWP-VC?:

{
  "iss": "did:example:1234", //VC's issuer
  "sub": "did:example:5678", //user
  "nbf": 1541493724,
  "exp": 1573029723,
  "jti": "http://example.com/credentials/2022",
  "nonce": 660!6345FSer,
  "vc": {                    //omitting @context for now
    "type": ["VerifiableCredential", "BasicCredential"],
  },  
  "claims": [                //need to clarify relationship between vc.credentialSubject and JWP header `claims`?
    "family_name",
    "given_name",
    "email",
    "age"
  ],
  "typ": "JPT",
  "alg": "BBS-X"
}

@quartzjer
Copy link
Collaborator Author

The example header would look more like:

{
  "iss": "did:example:1234",
  "vc": { 
    "type": ["VerifiableCredential", "BasicCredential"],
  },  
  "claims": [
    "sub",
    "nbf",
    "exp",
    "jti",
    "family_name",
    "given_name",
    "email",
    "age"
  ],
  "typ": "JPT",
  "alg": "BBS-X"
}

The header can only contain parameters/values that are a constant, if they are unique they become something that can be correlated. All per-issuance values MUST be in a payload so that they can be selectively disclosed and unlinkable (when supported by the JPA).

@dwaite dwaite added this to the draft-5 milestone Feb 16, 2024
@dwaite
Copy link
Contributor

dwaite commented Feb 16, 2024

@dwaite dwaite self-assigned this Feb 16, 2024
@dwaite dwaite modified the milestones: draft-3, draft-4 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JPT JSON Proof Token
Projects
None yet
Development

No branches or pull requests

3 participants