-
Notifications
You must be signed in to change notification settings - Fork 515
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
revoke_credential -> revoke_credentials to allow more efficient implementation #435
revoke_credential -> revoke_credentials to allow more efficient implementation #435
Conversation
Codecov Report
@@ Coverage Diff @@
## master #435 +/- ##
==========================================
- Coverage 89.05% 89.05% -0.01%
==========================================
Files 248 248
Lines 12200 12205 +5
==========================================
+ Hits 10865 10869 +4
- Misses 1335 1336 +1 |
b481e35
to
3cabc4f
Compare
result[registry_record.revoc_reg_id] = [ | ||
cr_id for cr_id in registry_record.pending_pub | ||
] | ||
result[registry_record.revoc_reg_id] = revoke_idxs |
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.
Doesn't this clobber any prior pending revocations? They won't make it into the delta, and they won't be pending anymore.
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 I understand. It's doing the same thing as before, creating a combined delta from all the pending indexes, just doing that inside the IndyIssuer class instead. The credx issuer has an optimized path that creates a combined delta all at once.
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.
Oh - I missed a line. It's fine.
Please merge ASAP, I have a change or two in this space that I don't want to merge with it manually. |
…mentation; add issuance_by_default parameter to create-registry endpoint Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
3cabc4f
to
d23f14d
Compare
delta_json = await indy.anoncreds.issuer_revoke_credential( | ||
self.wallet.handle, tails_reader_handle, revoc_reg_id, cred_revoc_id | ||
) | ||
if not result_json: |
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.
My two cents: if not ... else is a sign of overthinking.
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.
Maybe underthinking..
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.
Tested
Also adds issuance_by_default parameter to create-registry endpoint
Fixes some method signatures in base classes