Skip to content

Commit

Permalink
Merge pull request #2814 from jamshale/fix-revocation-notification
Browse files Browse the repository at this point in the history
Fix anoncreds non-endorsement revocation
  • Loading branch information
swcurran authored Feb 24, 2024
2 parents 9f5dda2 + 4992bbd commit 9979a1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions aries_cloudagent/anoncreds/default/legacy_indy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ....anoncreds.default.legacy_indy.author import get_endorser_info
from ....cache.base import BaseCache
from ....config.injection_context import InjectionContext
from ....core.event_bus import EventBus
from ....core.profile import Profile
from ....ledger.base import BaseLedger
from ....ledger.error import (
Expand Down Expand Up @@ -967,10 +968,12 @@ async def update_revocation_list(
)

if write_ledger:
await self.notify(
event_bus = profile.inject(EventBus)
await event_bus.notify(
profile,
RevListFinishedEvent.with_payload(
curr_list.rev_reg_def_id, newly_revoked_indices
)
),
)
return RevListResult(
job_id=None,
Expand Down
2 changes: 1 addition & 1 deletion demo/features/revocation-api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: ACA-Py Revocation API
Then "Bob" can verify the credential from "<issuer>" was revoked
Examples:
| issuer | Acme_capabilities | Bob_capabilities | Schema_name | Credential_data | Proof_request |
#| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 |
| Acme | --revocation --public-did | | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 |
| Acme | --revocation --public-did --wallet-type askar-anoncreds | --wallet-type askar-anoncreds | driverslicense_v2 | Data_DL_MaxValues | DL_age_over_19_v2 |

@Revoc-api.x @GHA-Anoncreds-break
Expand Down

0 comments on commit 9979a1c

Please sign in to comment.