-
Notifications
You must be signed in to change notification settings - Fork 20
#3967: get credential status from local store for issued VCs (did:web) #3969
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
base: master
Are you sure you want to change the base?
Conversation
2 new issues
|
|
Coverage Impact ⬆️ Merging this pull request will increase total coverage on Modified Files with Diff Coverage (5)
🤖 Increase coverage with AI coding...🚦 See full report on Qlty Cloud » 🛟 Help
|
| Select("status_list_credential.status_purpose, status_list_entry.created_at"). | ||
| Joins("JOIN status_list_credential ON status_list_entry.status_list_credential = status_list_credential.subject_id"). | ||
| Where("status_list_entry.credential_id = ?", credentialID.String()). | ||
| First(&result). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we somehow create a unique index on the table so that is would be impossible to have multiple revocations per VC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there are multiple statuslist reasons (e.g. suspended, revoked), there can be multiple statuslist entries (first suspended, then revoked). We don't actively use it, but I don't think it's smart to limit the current setup to only 1 statuslist entry, since it won't make things better, but might break things in future.
stevenvegt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how the ErrMultipleFound can be caused and fixed. But I prefer a setup in which this error should not be possible.

Fixes #3967