Skip to content

Commit b5732d3

Browse files
TheTechmagedbluhm
authored andcommitted
fix: passing of wrong key type
Signed-off-by: Colton Wolkins (Indicio work address) <[email protected]>
1 parent 5cc8e71 commit b5732d3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

didcomm_messaging/quickstart.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def send_http_message(
263263

264264

265265
async def setup_relay(
266-
dmp: DIDCommMessaging, my_did: DID, relay_did: DID, keys: Sequence[Key]
266+
dmp: DIDCommMessaging, my_did: DID, relay_did: DID, keys: Tuple[Key]
267267
) -> Union[DID, None]:
268268
"""Negotiate services with an inbound relay.
269269
@@ -290,7 +290,19 @@ async def setup_relay(
290290
# Create a new DID with an updated service endpoint, pointing to our relay
291291
relay_did = message.body["routing_did"][0]
292292
new_did = generate(
293-
keys,
293+
[
294+
KeySpec.verification(
295+
multibase.encode(
296+
multicodec.wrap("ed25519-pub", key[0].get_public_bytes()),
297+
"base58btc",
298+
)
299+
),
300+
KeySpec.key_agreement(
301+
multibase.encode(
302+
multicodec.wrap("x25519-pub", key[1].get_public_bytes()), "base58btc"
303+
)
304+
),
305+
],
294306
[
295307
{
296308
"type": "DIDCommMessaging",

0 commit comments

Comments
 (0)