Skip to content

Commit

Permalink
fix: remove redundant transform step
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Oct 8, 2023
1 parent 726de09 commit f498219
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aries_cloudagent/resolver/default/legacy_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ def didcomm_services_recip_keys_are_refs_routing_keys_are_did_key_ref(
]
if "routingKeys" in service:
service["routingKeys"] = [
cls.did_key_to_did_key_ref(
DIDKey.from_public_key_b58(key, ED25519).key_id
)
DIDKey.from_public_key_b58(key, ED25519).key_id
if "did:key:" not in key
else cls.did_key_to_did_key_ref(key)
for key in service["routingKeys"]
Expand Down

0 comments on commit f498219

Please sign in to comment.