Anoncreds revoke and publish-revocations endorsement #2782
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Opening for visibility. I'm still going to manually test more but the Integration tests are passing for endorsement and publishing revocations.
One area of confusion for me is what happens with the local wallet verse the ledger. Write now an endorsement transaction is created when the
update_revocation_list
is called with changes. Then the local wallet is updated. At the same time the endorsement manager receives the114
event and notifies the anoncredsRevocationListFinished
event handler. It checks if the wallet contains a record for the list viarev_reg_def_id
and if it doesn't it creates the record. If it does then it assumes the record has been updated already and does nothing.I was trying some other stuff like deleting the record and creating a new one with a
wait
state but couldn't decide if this was necessary, or something we wanted to do.I deleted the
/anoncreds/revoke
and/anoncreds/publish-revocation
endpoints and instead just have the/revocation/revoke
and/revocation/publish-revocation
. I thought this was appropriate because the revocation endpoint are all loaded for anoncreds specifically and the rest of the anoncreds endpoints are to do with creating objects. I changed the params for requesting a transaction manually to use the body options and updated the integration tests.