Skip to content

Commit 7a185f6

Browse files
TheTechmagedbluhm
authored andcommitted
fix: Add @id attribute to V1 forward messages
Signed-off-by: Colton Wolkins (Indicio work address) <[email protected]>
1 parent 2ce8400 commit 7a185f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

didcomm_messaging/v1/messaging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from dataclasses import dataclass
44
import json
5+
import uuid
56
from typing import Generic, Optional, Sequence, Union
67

78
from pydantic import AnyUrl
@@ -118,6 +119,7 @@ async def from_did_to_kid(
118119
def forward_wrap(self, to: str, msg: str) -> bytes:
119120
"""Wrap a message in a forward."""
120121
forward = {
122+
"@id": str(uuid.uuid4()),
121123
"@type": "https://didcomm.org/routing/1.0/forward",
122124
"to": to,
123125
"msg": msg,

0 commit comments

Comments
 (0)