Skip to content

Commit

Permalink
fix: accept and emit didexchange/1.1 when appropriate
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Jan 30, 2024
1 parent 6575b46 commit f2d567f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions aries_cloudagent/messaging/responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
from .base_message import BaseMessage

SKIP_ACTIVE_CONN_CHECK_MSG_TYPES = [
"didexchange/1.1/request",
"didexchange/1.1/response",
"didexchange/1.1/problem_report",
"didexchange/1.0/request",
"didexchange/1.0/response",
"didexchange/1.0/problem_report",
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/didexchange/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"major_version": 1,
"minimum_minor_version": 0,
"current_minor_version": 0,
"current_minor_version": 1,
"path": "v1_0",
}
]
7 changes: 6 additions & 1 deletion aries_cloudagent/protocols/didexchange/v1_0/message_types.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
"""Message type identifiers for Connections."""

from ....core.util import get_proto_default_version
from ...didcomm_prefix import DIDCommPrefix

SPEC_URI = (
"https://github.com/hyperledger/aries-rfcs/tree/"
"25464a5c8f8a17b14edaa4310393df6094ace7b0/features/0023-did-exchange"
)
ARIES_PROTOCOL = "didexchange/1.0"
# Default Version
DEFAULT_VERSION = get_proto_default_version(
"aries_cloudagent.protocols.didexchange.definition", 1
)
ARIES_PROTOCOL = f"didexchange/{DEFAULT_VERSION}"

# Message types
DIDX_REQUEST = f"{ARIES_PROTOCOL}/request"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@ class HSProto(Enum):
RFC23 = HSProtoSpec(
23,
DIDX_PROTO,
{"didexchange", "didx", "didex", "rfc23", "23", "new"},
{
"https://didcomm.org/didexchange/1.0",
"didexchange/1.0",
"didexchange",
"didx",
"didex",
"rfc23",
"23",
"new",
},
)

@classmethod
Expand Down

0 comments on commit f2d567f

Please sign in to comment.