Skip to main content

Oblivious pseudo-random function (OPRF) protocol functionality implementations based on Ed25519 primitives.

Project description

Oblivious pseudo-random function (OPRF) protocol functionality implementations based on Ed25519 primitives, including both pure-Python and libsodium-based variants.

PyPI version and link. travis coveralls

Purpose

This library provides data structures and methods for a basic oblivious pseudo-random function (OPRF) protocol. Thanks to the underlying oblivious library, users of this library have the option of relying either on pure Python implementations of cryptographic primitives or on wrappers for libsodium.

Package Installation and Usage

The package is available on PyPI:

python -m pip install oprf

The library can be imported in the usual ways:

import oprf
from oprf import *

Testing and Conventions

All unit tests are executed and their coverage is measured when using nose (see setup.cfg for configution details):

nosetests

Alternatively, all unit tests are included in the module itself and can be executed using doctest:

python oprf/oprf.py -v

Style conventions are enforced using Pylint:

pylint oprf

Contributions

In order to contribute to the source code, open an issue or submit a pull request on the GitHub page for this library.

Versioning

The version number format for this library and the changes to the library associated with version number increments conform with Semantic Versioning 2.0.0.

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

oprf-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

oprf-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file oprf-1.0.0.tar.gz.

File metadata

  • Download URL: oprf-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.0

File hashes

Hashes for oprf-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8bad854626e54955c5fda6a6dd9682582c3bd933e8e7d3026badc6726b4a5d17
MD5 34ef78f2d70990ca51b1fe4675120790
BLAKE2b-256 671eaf96c3b58e9f4b17d81747a18952550df20885a2e23aeef617d44e454147

See more details on using hashes here.

File details

Details for the file oprf-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: oprf-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.0

File hashes

Hashes for oprf-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af29298ac3fef2e4a9827402f83428e30e109e53428243b3a6e0a054555c5014
MD5 ee06bfc5e7496035889a4e0f2e0b9e93
BLAKE2b-256 d07b37816b0c3e2d0399a0de9740793ba1bc0da000f67114bd811e106f78ac28

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