From e15643880b9290e3fa6f2912506acb9d8c7846b4 Mon Sep 17 00:00:00 2001 From: "Colton Wolkins (Indicio work address)" Date: Tue, 25 Jun 2024 10:05:36 -0600 Subject: [PATCH] fix: Add `@id` attribute to V1 forward messages Signed-off-by: Colton Wolkins (Indicio work address) --- didcomm_messaging/v1/messaging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/didcomm_messaging/v1/messaging.py b/didcomm_messaging/v1/messaging.py index 69c1fc7..5cb1a24 100644 --- a/didcomm_messaging/v1/messaging.py +++ b/didcomm_messaging/v1/messaging.py @@ -2,6 +2,7 @@ from dataclasses import dataclass import json +import uuid from typing import Generic, Optional, Sequence, Union from pydantic import AnyUrl @@ -118,6 +119,7 @@ async def from_did_to_kid( def forward_wrap(self, to: str, msg: str) -> bytes: """Wrap a message in a forward.""" forward = { + "@id": str(uuid.uuid4()), "@type": "https://didcomm.org/routing/1.0/forward", "to": to, "msg": msg,