Skip to main content

Embeded the xxxdh, which iplementation of the Extended Triple Diffie-Hellman key exchange protocol written in Rust, on Python. xxxdh is written by Olexander Yermakov.

Project description

Rust-X3DH

Embeded the xxxdh, which iplementation of the Extended Triple Diffie-Hellman key exchange protocol written in Rust, on Python. xxxdh is written by Olexander Yermakov.

Implementation is close to the Signal Spec, but Ristretto point Curve25519 used as a curve for the default implementation. Though underlying algorithms could be changed fairly easily.

Usage

//! Basic example.

from rust_x3dh import x3dh_ser

u1_shared_secret_key, u2_shared_secret_key = x3dh_ser.gen_3xdh_secrets_key_pairs()

print(f"[u1_shared_secret_key]:{u1_shared_secret_key}")
print(f"[u2_shared_secret_key]:{u2_shared_secret_key}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rust_x3dh-0.1.3.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distributions

rust_x3dh-0.1.3-cp37-abi3-win_amd64.whl (199.5 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

rust_x3dh-0.1.3-cp37-abi3-win32.whl (223.1 kB view hashes)

Uploaded CPython 3.7+ Windows x86

rust_x3dh-0.1.3-cp37-abi3-musllinux_1_2_x86_64.whl (452.4 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

rust_x3dh-0.1.3-cp37-abi3-musllinux_1_2_aarch64.whl (452.8 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

rust_x3dh-0.1.3-cp37-abi3-macosx_11_0_arm64.whl (292.2 kB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

rust_x3dh-0.1.3-cp37-abi3-macosx_10_12_x86_64.whl (303.4 kB view hashes)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page