Skip to content

Commit

Permalink
fix: Add @id attribute to V1 forward messages
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 authored and dbluhm committed Jun 25, 2024
1 parent 2ce8400 commit 7a185f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions didcomm_messaging/v1/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from dataclasses import dataclass
import json
import uuid
from typing import Generic, Optional, Sequence, Union

from pydantic import AnyUrl
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7a185f6

Please sign in to comment.