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

credential_hash within the status.status_assertion #66

Open
peppelinux opened this issue Jun 11, 2024 · 1 comment
Open

credential_hash within the status.status_assertion #66

peppelinux opened this issue Jun 11, 2024 · 1 comment
Assignees
Labels
invalid This doesn't seem right

Comments

@peppelinux
Copy link
Owner

to simplify the implementation we may think to add the credential_hash directly in the status object representing the support of status assertion

this would avoid the calculation of the hash by the wallet instance that may only validate the computed hash

{
    "vct": "https://credentials.example.com/identity_credential",
    "given_name": "John",
    "family_name": "Doe",
    "email": "johndoe@example.com",
    "phone_number": "+1-202-555-0101",
    "address": {
      "street_address": "123 Main St",
      "locality": "Anytown",
      "region": "Anystate",
      "country": "US"
    },
    "birthdate": "1940-01-01",
    "is_over_18": true,
    "is_over_21": true,
    "is_over_65": true,
    "status": {
       "status_assertion": {
           "credential_hash_alg": "sha-256",
           "credential_hash": ..........,
       }
    }
   }
@peppelinux peppelinux self-assigned this Jun 11, 2024
@peppelinux peppelinux modified the milestone: 03 Jun 11, 2024
@peppelinux
Copy link
Owner Author

as discussed with @OR13 this cannot be done and this reminds us why we didn't make it

we cannot evaluate an hash and put its value about something that is contained in the payload where the hash must be evaluated from

a circular dependency breaks the approach

@peppelinux peppelinux added the invalid This doesn't seem right label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant