Cross-Platform Identity Authentication and End-to-End Encrypted Communication Technology Based on DID
Author: Chang Gaowei
Email: chgaowei@gmail.com
Website: pi-unlimited.com
中文版本: 中文版本readme
Abstract
This project is an open-source SDK implementation based on Decentralized Identifier (DID) and end-to-end encrypted communication technology. For technical details, refer to the Technical White Paper: A Cross-Platform Identity Authentication and End-to-End Encrypted Communication Technology Based on DID. With the didall open-source project, any intelligent agent or server can connect to the DID server, register its DID, accept connections from other users, connect to other users, and engage in end-to-end encrypted communication.
Features
- Cross-Platform Identity Authentication: Achieves identity interoperability across different platforms using DID.
- End-to-End Encrypted Communication: Uses ECDHE for short-term key agreement to ensure communication security.
- Efficient and Secure: Simplifies the identity verification process, ensuring data confidentiality and integrity.
Installation
The latest version has been removed from PyPI, so install directly:
pip install didall
Usage
After installing the didall library, you can run the sample code in the examples directory to generate DID files for Alice and Bob, save Alice's DID file to the DID server, and then have Bob connect to Alice's DID for end-to-end encrypted communication.
- Generate two DID documents, alice.json and bob.json, save them to the specified files, and register them with the DID server:
python sample_did.py alice.json
python sample_did.py bob.json
- Start Alice's demo:
python sample_alice.py alice.json
- Start Bob's demo:
python sample_bob.py bob.json
By checking the logs, you can see that Alice and Bob have successfully connected and engaged in end-to-end encrypted communication.
Contributing
Contributions to this project are welcome. Please read the contribution guidelines before submitting a pull request.
License
This project is open-sourced under the MIT License. For more details, please refer to the LICENSE file.
Packaging and Uploading (update the version number in setup.py first)
python setup.py sdist bdist_wheel
twine upload dist/*
Metadata
Release files for didall 0.1.5
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 |
|---|---|---|---|---|
| didall-0.1.5.tar.gz | 30.3 kB | Without provenance | Details for didall-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| didall-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for didall-0.1.5-py3-none-any.whl |
Total release size: 70.0 kB
Release files / didall-0.1.5.tar.gz
| Download URL | didall-0.1.5.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28c8539cbf5c659fd44669e48f8315107260fc3cb7e95cd9d06035f9c4f79ef9
|
|
BLAKE2b-256 checksum How to use checksums |
fc6554df1af137365050738d51da5c1099957a7c80dc72066e0592d344fd8987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / didall-0.1.5-py3-none-any.whl
| Download URL | didall-0.1.5-py3-none-any.whl |
|---|---|
| Size | 39.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cad41a160b16f9a9099801196921ecc4b7ea0858c283105b57bca2fb978ba802
|
|
BLAKE2b-256 checksum How to use checksums |
be0236755ed817fc31e13167cfbf4a12d735006cbfaa1ff87fae147f09e0a054
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for didall 0.1.5
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.