didcomm-messaging-python
This is a minimal but flexible implementation of DIDComm Messaging. To learn more about DIDComm Messaging, check out the spec or visit didcomm.org to learn about DIDComm Messaging protocols defined by the community.
Usage
Overview
This library has the following core components (as outlined in the layer cake architecture diagram above):
CryptoService
The CryptoService provides the core cryptographic capabilities needed to encrypt and decrypt DIDComm Messages. This service is designed to be implemented by users of this library; however, an implementation using Aries Askar is available as an extra (install the askar extra to use it). Additional implementations may be added as extras in the future (i.e. an implementation using Authlib's JWE implementation or perhaps an implementation backed by an HSM). The service is seprate from but closely coupled with the SecretsManager. Both must use the same public and private key representations.
SecretsManager
The SecretsManager is responsible for retrieving secrets for use by the CryptoService. It is notable that the secret value need not literally contain the value of a private key. For example, in the included Askar implementation, an Askar Key value is retrieved. This object in python does permit you to retrieve the bytes of the secret key from Askar if you choose; however, this is not necessary for the operation of the library. This enables Askar to keep the private key value down in the Rust layer where it can better ensure security of the key (zeroizing memory, etc.). This is not so distant from interacting with an HSM; as long as the SecretKey value retrieved by the SecretsManager can be used by the CryptoService to perform the required cryptographic operations, exactly what is stored inside of the SecretKey object is irrelevant.
DIDResolver
This component provides a fairly generic DID Resolution interface. Users of this library will provide a resolver implementation for the DID Methods they care about. Implementations of did:peer:2 and did:peer:4 are included as part of the did_peer extra.
PackagingService
The PackagingService is responsible for the core functions of packing and unpacking messages. It depends on the CryptoService, the SecretsManager, and the DIDResolver to accomplish this.
RoutingService
The RoutingService is responsible for preparing messages for forwarding to a mediator. It depends on the PackagingService and the DIDResolver to accomplish this.
DIDCommMessaging
The DIDCommMessaging interface is the main entrypoint for interacting with this library. It utilizes all the layers below to prepare messages for other parties.
Metadata
Release files for didcomm-messaging 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| didcomm_messaging-0.1.1.tar.gz | 37.1 kB | Without provenance | Details for didcomm_messaging-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| didcomm_messaging-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for didcomm_messaging-0.1.1-py3-none-any.whl |
Total release size: 75.4 kB
Release files / didcomm_messaging-0.1.1.tar.gz
| Download URL | didcomm_messaging-0.1.1.tar.gz |
|---|---|
| Size | 37.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3c7c7612b8f9710ccd221b2f5e8456cbf868600f7cc10474fcc98be325702eb
|
|
BLAKE2b-256 checksum How to use checksums |
8bb25454dfe1af03abd1a7915b0f05db33413d74b417ae1d733cb7715fb7aec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.4 CPython/3.10.12 Linux/6.5.0-1021-azure
|
Release files / didcomm_messaging-0.1.1-py3-none-any.whl
| Download URL | didcomm_messaging-0.1.1-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5350006d3a92e085dd208add738d6439c2b0a950c1fe19011ece71de0574cc1a
|
|
BLAKE2b-256 checksum How to use checksums |
8d387a48af62f201a111f52a6f8d35eb367632e21f0e8b0e4ead8bddac6be8c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.4 CPython/3.10.12 Linux/6.5.0-1021-azure
|
Security for didcomm-messaging 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.