aries_cloudagent.protocols package

Subpackages

Submodules

aries_cloudagent.protocols.didcomm_prefix module

DIDComm prefix management.

class aries_cloudagent.protocols.didcomm_prefix.DIDCommPrefix(value)[source]

Bases: Enum

Enum for DIDComm Prefix, old or new style, per Aries RFC 384.

NEW = 'https://didcomm.org'
OLD = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'
qualify(msg_type: str) str[source]

Qualify input message type with prefix and separator.

classmethod qualify_all(messages: dict) dict[source]

Apply all known prefixes to a dictionary of message types.

static qualify_current(slug: str) str[source]

Qualify input slug with prefix currently in effect and separator.

This method now will always use the new prefix.

static unqualify(qual: str) str[source]

Strip prefix and separator from input, if present, and return result.

aries_cloudagent.protocols.didcomm_prefix.qualify(msg_type: str, prefix: str)[source]

Qualify a message type with a prefix, if unqualified.