-
Notifications
You must be signed in to change notification settings - Fork 53
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
Missing sn in CloneCred after fix in PR #682 #854
base: main
Are you sure you want to change the base?
Conversation
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.
See comment inline and please add a test for this.
src/keri/vdr/viring.py
Outdated
status = self.tevers[regk].vcState(saider.qb64) | ||
schemer = db.schema.get(creder.schema) | ||
|
||
iss = bytearray(self.cloneTvtAt(creder.said, sn=0 if status.et == coring.Ilks.iss else 1)) |
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 don't think this is the appropriate fix because it puts either an issuance event OR a revocation event in a field called "iss". This PR should load and create a rvk field with the revocation event if one exists.
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.
Should we call the field rvk
or rev
like in the type field? Also, for a revoked credential, should the response also include the iss
?
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.
Good call, make it rev
. Yes, you might as well include both events.
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 added rev
, revatc
, revanc
and revancatc
. And tests.
PR #682 omitted specifying
sn
in the call tocloneTvtAt
at line 405. This is important for revoked credentials.See diff changes on line 405 of PR #682
This PR inserts again the
sn
parameter.Additionally, I corrected the sn used to search in the Tel, sn=0 for
iss
or sn=1 forrev