Skip to content

Commit

Permalink
update logic in routes to use LegacyIndyRegistry directly/
Browse files Browse the repository at this point in the history
implement endpoints used for TAA BDD tests

Signed-off-by: Jason Sherman <[email protected]>
  • Loading branch information
usingtechnology committed Sep 19, 2023
1 parent 162dfdc commit 4ef80dd
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 285 deletions.
7 changes: 0 additions & 7 deletions aries_cloudagent/anoncreds/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
GetCredDefResult,
)
from .models.anoncreds_revocation import (
GetRevListResult,
GetRevRegDefResult,
RevRegDef,
RevRegDefResult,
Expand Down Expand Up @@ -130,12 +129,6 @@ async def get_revocation_registry_definition(
) -> GetRevRegDefResult:
"""Get a revocation registry definition from the registry."""

@abstractmethod
async def get_revocation_list(
self, profile: Profile, revocation_registry_id: str, timestamp: int
) -> GetRevListResult:
"""Get a revocation list from the registry."""

@abstractmethod
async def get_revocation_registry_delta(
self, profile: Profile, rev_reg_def_id: str, timestamp: None
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/anoncreds/default/legacy_indy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ async def _revoc_reg_entry_with_fix(
profile,
rev_list,
True,
ledger.genesis_txns,
ledger.pool.genesis_txns,
)
rev_entry_res = {"result": res}
LOGGER.warn("Ledger update/fix applied")
Expand Down
11 changes: 1 addition & 10 deletions aries_cloudagent/anoncreds/registry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""AnonCreds Registry."""
import logging
from typing import List, Optional, Sequence, Tuple
from typing import List, Optional, Sequence


from ..core.profile import Profile
Expand Down Expand Up @@ -147,15 +147,6 @@ async def get_revocation_list(
resolver = await self._resolver_for_identifier(rev_reg_def_id)
return await resolver.get_revocation_list(profile, rev_reg_def_id, timestamp)

async def get_revocation_registry_delta(
self, profile: Profile, rev_reg_def_id: str, timestamp: None
) -> Tuple[dict, int]:
"""Get a revocation registry delta."""
resolver = await self._resolver_for_identifier(rev_reg_def_id)
return await resolver.get_revocation_registry_delta(
profile, rev_reg_def_id, timestamp
)

async def register_revocation_list(
self,
profile: Profile,
Expand Down
Loading

0 comments on commit 4ef80dd

Please sign in to comment.