Skip to content

Commit

Permalink
Merge pull request #13 from cjhowland/fix/public-did-mediator-routing…
Browse files Browse the repository at this point in the history
…-keys

fix: account for changes to KeyType
  • Loading branch information
dbluhm authored Oct 27, 2022
2 parents f1cac9c + 87905a8 commit 78fc4b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aries_cloudagent/resolver/default/indy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
from ...messaging.valid import IndyDID
from ...multitenant.base import BaseMultitenantManager
from ...wallet.key_type import KeyType
from ...wallet.key_type import ED25519
from ..base import BaseDIDResolver, DIDNotFound, ResolverError, ResolverType

LOGGER = logging.getLogger(__name__)
Expand All @@ -39,9 +39,7 @@ def _routing_keys_as_did_key_urls(routing_keys: Sequence[str]) -> Sequence[str]:
did_key_urls = []
for routing_key in routing_keys:
if not routing_key.startswith("did:key:"):
did_key_urls.append(
DIDKey.from_public_key_b58(routing_key, KeyType.ED25519).key_id
)
did_key_urls.append(DIDKey.from_public_key_b58(routing_key, ED25519).key_id)
else:
if "#" not in routing_key:
did_key_urls.append(
Expand Down

0 comments on commit 78fc4b0

Please sign in to comment.