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
Release history Release notifications | RSS feed
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.0.9.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for rust_x3dh-0.0.9-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c199170b0907f446bb2261f13e4160afa3ecb95d82dc22ad8bb7d52775c5dab |
|
MD5 | 95dded17cb2c8fc4a75512c64b646f53 |
|
BLAKE2b-256 | c0ccc37758964f948fc0b630eef55cb27cb24ff3b219501ee5c12cb37a7266e7 |