Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hkk97/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.
https://github.com/hkk97/rust_x3dh
pyo3-rust-bindings rust signal-protocol x3dh
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/hkk97/rust_x3dh
- Owner: hkk97
- License: mit
- Created: 2024-01-07T15:05:28.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-02T16:42:21.000Z (11 months ago)
- Last Synced: 2024-10-04T04:12:29.971Z (4 months ago)
- Topics: pyo3-rust-bindings, rust, signal-protocol, x3dh
- Language: Rust
- Homepage: https://pypi.org/project/rust-x3dh/
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust-X3DH
Embeded the [xxxdh](https://github.com/alexyer/xxxdh/tree/master), which iplementation of the Extended Triple Diffie-Hellman key exchange protocol written in Rust, on Python. [xxxdh](https://github.com/alexyer/xxxdh/tree/master) is written by [Olexander Yermakov](https://github.com/alexyer).
Implementation is close to the [Signal Spec](https://signal.org/docs/specifications/x3dh/), but Ristretto point Curve25519 used as a *curve* for the default implementation. Though underlying algorithms could be changed fairly easily.
## Usage
```python
//! 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}")
```