Skip to content

Commit 92430f6

Browse files
aritroCoderPatStLouis
authored andcommitted
Update aries_cloudagent/wallet/default_verification_key_strategy.py
added multikey support Co-authored-by: Patrick St-Louis <[email protected]> Signed-off-by: Aritra Bhaduri <[email protected]>
1 parent 8b34457 commit 92430f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acapy_agent/wallet/default_verification_key_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def get_verification_method_id_for_did(
7777
verification_method_types = self.key_types_mapping[proof_type]
7878
verification_method_list = did_document.get("verificationMethod", None)
7979
for method in verification_method_list:
80-
if method.get("type") == verification_method_type:
80+
if method.get("type") in verification_method_types:
8181
return method.get("id")
8282
else:
8383
# taking the first verification method from did document

0 commit comments

Comments
 (0)