aries_cloudagent.protocols package



aries_cloudagent.protocols.didcomm_prefix module

DIDComm prefix management.

class aries_cloudagent.protocols.didcomm_prefix.DIDCommPrefix[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: str = None) → str[source]

Qualify input message type with prefix and separator.

qualify_all = <bound method DIDCommPrefix.qualify_all of <enum 'DIDCommPrefix'>>[source]
qualify_current = <function DIDCommPrefix.qualify_current>[source]
set = <function DIDCommPrefix.set>[source]
unqualify = <function DIDCommPrefix.unqualify>[source]
aries_cloudagent.protocols.didcomm_prefix.qualify(msg_type: str, prefix: str)[source]

Qualify a message type with a prefix, if unqualified.