Skip to main content

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.

  1. 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
  1. Start Alice's demo:
python sample_alice.py alice.json
  1. 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)

Source distribution for didall 0.1.5
File Size Uploaded
didall-0.1.5.tar.gz 30.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for didall 0.1.5
File Interpreter ABI Platform
didall-0.1.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page