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-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oprf-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oprf-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for oprf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28e3306669c60e5d8792144c3d3563078b5cf84f739e245e64377f5d1dec6066
MD5 f2345f37a8d64fe329365c9d3cea83bc
BLAKE2b-256 5dae19eb4d9e557e62a1a947236db7a8c1b012c1035a94c860c92ee992e24415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oprf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for oprf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20da88c84ea23425ee4466915afe23c1839aa4aca1b0820b7293b0fd50e9eced
MD5 8a85b7f0bfdb7f5ff915550740569dfa
BLAKE2b-256 1a6acebc358e0cb3230b2dfd0cec55277126c0acb27d1d7fb0c6d9568ec442f8

See more details on using hashes here.

Supported by

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