Skip to content

Commit

Permalink
did:key from invitation services, now contains hash separator
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Dec 4, 2023
1 parent 4d5590d commit 6ec8a0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/services/onboarding/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ async def onboard_verifier(*, verifier_controller: AcaPyClient, verifier_label:
and "recipientKeys" in service
and len(service["recipientKeys"]) > 0
):
onboarding_result["did"] = service["recipientKeys"][0]
did = service["recipientKeys"][0]
if "#" in did:
did = did.split("#")[0]
onboarding_result["did"] = did
else:
raise KeyError(
f"RecipientKeys not present in the invitation service: `{service}`."
Expand Down

0 comments on commit 6ec8a0d

Please sign in to comment.