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

Status list checking should only show relevant statuses #621

Open
decentralgabe opened this issue Jul 31, 2023 · 0 comments
Open

Status list checking should only show relevant statuses #621

decentralgabe opened this issue Jul 31, 2023 · 0 comments
Labels
credentials question Further information is requested

Comments

@decentralgabe
Copy link
Member

I create a credential and set revocable to true

curl -X PUT loccurl -X PUT localhost:3000/v1/credentials -d '{
  "issuer": "did:key:z6Mkm1TmRWRPK6n21QncUZnk1tdYkje896mYCzhMfQ67assD",
  "verificationMethodId": "did:key:z6Mkm1TmRWRPK6n21QncUZnk1tdYkje896mYCzhMfQ67assD#z6Mkm1TmRWRPK6n21QncUZnk1tdYkje896mYCzhMfQ67assD",
  "subject": "did:key:z6MkmNnvnfzW3nLiePweN3niGLnvp2BjKx3NM186vJ2yRg2z",
  "schemaId": "aed6f4f0-5ed7-4d7a-a3df-56430e1b2a88",
  "data": {
    "firstName": "Satoshi",
    "lastName": "Nakamoto"
  },
  "revocable": true
}'

I check the credentials status

curl http://localhost:3000/v1/credentials/status/b7a8bd19-f20d-4132-ac2e-137ff4d1511a

and see

{"revoked":false,"suspended":false}

but the credential can never be suspended since I've only enabled it to be revocable. It should not include suspended in the response.

More broadly with #476 we should reconsider the response returned.

One possible option would be to make a query directly against the status list credential you're interested in and get a boolean value back.

I will also note that the the method we're currently using is not privacy preserving since we're accepting queries for a specific credential which erases the herd privacy benefits of status list. An alternative would be to not support this feature, but provide a separate utility that helps a verifier compute the status of a given credential.

@decentralgabe decentralgabe added question Further information is requested credentials labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
credentials question Further information is requested
Projects
No open projects
Status: 🆕 New
Development

No branches or pull requests

1 participant