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

revoke_credential -> revoke_credentials to allow more efficient implementation #435

Merged

Conversation

andrewwhitehead
Copy link
Contributor

Also adds issuance_by_default parameter to create-registry endpoint
Fixes some method signatures in base classes

@codecov-io
Copy link

codecov-io commented Mar 25, 2020

Codecov Report

Merging #435 into master will decrease coverage by 0.00%.
The diff coverage is 95.65%.

@@            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     

result[registry_record.revoc_reg_id] = [
cr_id for cr_id in registry_record.pending_pub
]
result[registry_record.revoc_reg_id] = revoke_idxs
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

sklump
sklump previously approved these changes Apr 1, 2020
@sklump
Copy link
Contributor

sklump commented Apr 1, 2020

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>
delta_json = await indy.anoncreds.issuer_revoke_credential(
self.wallet.handle, tails_reader_handle, revoc_reg_id, cred_revoc_id
)
if not result_json:
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe underthinking..

Copy link
Contributor

@ianco ianco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@andrewwhitehead andrewwhitehead merged commit 109ec34 into openwallet-foundation:master Apr 2, 2020
@andrewwhitehead andrewwhitehead deleted the revoke-multiple branch February 25, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants