-
Notifications
You must be signed in to change notification settings - Fork 516
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
Add credential_revoked state #1545
Conversation
Signed-off-by: DaevMithran <[email protected]>
609542f
to
7a04e0f
Compare
Signed-off-by: DaevMithran <[email protected]>
Typically the credential exchange records will get deleted after the credential is issued, so in most use cases there will be no credential exchange record when the credential is revoked. I'm not sure if it makes sense to add a status or tag on the credential itself with the status (issued vs revoked)? |
While "typically" they will get deleted, not always, and the intention of this PR is to updated the non-deleted protocol state objects if they are not deleted. |
It shouldn't raise an error. The credential exchange record can be deleted, and could even be deleted in between the revocation and publishing events.
Not completely sure of the intent, but you may want to change the status to Also note that there are some tests failing on this PR (formatting and unit tests). |
c7fde5a
to
580bafd
Compare
Signed-off-by: DaevMithran <[email protected]>
580bafd
to
a3bfc43
Compare
Signed-off-by: DaevMithran <[email protected]>
Hi @swcurran @ianco
Questions
|
Codecov Report
@@ Coverage Diff @@
## main #1545 +/- ##
==========================================
- Coverage 95.76% 95.73% -0.04%
==========================================
Files 527 527
Lines 32312 32336 +24
==========================================
+ Hits 30943 30956 +13
- Misses 1369 1380 +11 |
cb8a349
to
33547ad
Compare
Signed-off-by: DaevMithran <[email protected]>
33547ad
to
9d7e947
Compare
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.
One (fairly minor) comment, plus this functionality should also be provided for the V20 cred exchange.
Signed-off-by: DaevMithran <[email protected]>
24165d3
to
2a155fe
Compare
I don't see any changes to |
Hi @shaangill025 initially I tried the tags approach but V20Cred_ex_record doesn't include values of rev_reg_id and cred_rev_id so went with a different approach.
|
Pull request for Issue: 1539
@swcurran Added the credential_revoked state.
For now I have considered only issue-credential 1.0, I should check for the record in V20CredentialExchange too.
Will do it soon. If you have any suggestions on my approach please comment below.
Questions:
When publish is set to pending, what is the best way to implement this?. I'm planning to create retrieve credential records using rev_reg_id and cred_rev_id