Skip to content

Commit

Permalink
fix: make get_suite async
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Mar 22, 2024
1 parent 1022611 commit d3ee92b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aries_cloudagent/vc/vc_ld/external_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ExternalSuiteProvider(ABC):
"""Plugin hook for providing an external signature suite implementation."""

@abstractmethod
def get_suite(
async def get_suite(
self,
profile: Profile,
proof_type: str,
Expand Down
8 changes: 4 additions & 4 deletions aries_cloudagent/vc/vc_ld/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ async def _get_suite(
self,
*,
proof_type: str,
verification_method: Optional[str] = None,
proof: Optional[dict] = None,
did_info: Optional[DIDInfo] = None,
verification_method: str,
proof: dict,
did_info: DIDInfo,
):
"""Get signature suite for issuance of verification."""
# Try to get suite from external provider first
try:
if (provider := self.profile.inject_or(ExternalSuiteProvider)) and (
suite := provider.get_suite(
suite := await provider.get_suite(
self.profile, proof_type, proof, verification_method, did_info
)
):
Expand Down

0 comments on commit d3ee92b

Please sign in to comment.