aries_cloudagent.protocols package



aries_cloudagent.protocols.didcomm_prefix module

DIDComm prefix management.

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

Bases: enum.Enum

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

NEW = ''
OLD = 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'
qualify(msg_type: Optional[str] = None) 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: Optional[str] = None) str[source]

Qualify input slug with prefix currently in effect and separator.

static set(settings: Mapping)[source]

Set current DIDComm prefix value in environment.

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.