Skip to content

Commit

Permalink
fix: passing of wrong key type
Browse files Browse the repository at this point in the history
Signed-off-by: Colton Wolkins (Indicio work address) <[email protected]>
  • Loading branch information
TheTechmage committed Jan 18, 2024
1 parent f22d60b commit f6f1332
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions didcomm_messaging/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def send_http_message(


async def setup_relay(
dmp: DIDCommMessaging, my_did: DID, relay_did: DID, keys: Sequence[Key]
dmp: DIDCommMessaging, my_did: DID, relay_did: DID, keys: Tuple[Key]
) -> Union[DID, None]:
"""Negotiate services with an inbound relay.
Expand All @@ -290,7 +290,19 @@ async def setup_relay(
# Create a new DID with an updated service endpoint, pointing to our relay
relay_did = message.body["routing_did"][0]
new_did = generate(
keys,
[
KeySpec.verification(
multibase.encode(
multicodec.wrap("ed25519-pub", key[0].get_public_bytes()),
"base58btc",
)
),
KeySpec.key_agreement(
multibase.encode(
multicodec.wrap("x25519-pub", key[1].get_public_bytes()), "base58btc"
)
),
],
[
{
"type": "DIDCommMessaging",
Expand Down

0 comments on commit f6f1332

Please sign in to comment.