Skip to main content

A Python implementation of the Extended Triple Diffie-Hellman key agreement protocol.

Project description

PyPI PyPI - Python Version Build Status Documentation Status

python-x3dh

A Python implementation of the Extended Triple Diffie-Hellman key agreement protocol.

Installation

Install the latest release using pip (pip install X3DH) or manually from source by running pip install . in the cloned repository.

Differences to the Specification

In the X3DH specification, the identity key is a Curve25519/Curve448 key and XEdDSA is used to create signatures with it. This library does not support Curve448, however, it supports Ed25519 in addition to Curve25519. You can choose whether the public part of the identity key in the bundle is transferred as Curve25519 or Ed25519. Refer to the documentation for details.

Testing, Type Checks and Linting

python-x3dh uses pytest as its testing framework, mypy for static type checks and both pylint and Flake8 for linting. All tests/checks can be run locally with the following commands:

$ pip install --upgrade pytest pytest-asyncio pytest-cov mypy pylint flake8
$ mypy --strict x3dh/ setup.py tests/
$ pylint x3dh/ setup.py tests/
$ flake8 x3dh/ setup.py tests/
$ pytest --cov=x3dh --cov-report term-missing:skip-covered

Documentation

View the documentation on readthedocs.io or build it locally, which requires the Python packages listed in docs/requirements.txt. With all dependencies installed, run make html in the docs/ directory. You can find the generated documentation in docs/_build/html/.

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

X3DH-1.0.4.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

X3DH-1.0.4-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file X3DH-1.0.4.tar.gz.

File metadata

  • Download URL: X3DH-1.0.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for X3DH-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1ba7304e098fb3ee7a2887367846baa6027ebe3815a352c1c1661f2b3ac97424
MD5 81b7a41d23564ad247cfa30c6f92dea2
BLAKE2b-256 e0f7856742ee62e585bd71a9cbc4a5710a06572660b8f080b587a488621a17f2

See more details on using hashes here.

File details

Details for the file X3DH-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: X3DH-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for X3DH-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 437c0a9eb0a924b7c31c059729ffc2d459dbecf022d0e391b55fb6e80060cffa
MD5 5caf75063b19448a5090e0ba66ad140b
BLAKE2b-256 317c865d6eb270741e15799990d554c90bfd41b3b8f221d24066970023d5f86d

See more details on using hashes here.

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