Skip to main content

ECVRF Library

A custom Elliptic Curve Verifiable Random Function (ECVRF) implementation.

Features

  • Key Generation and Management
  • Proof Generation and Verification
  • Hash-to-Curve Mapping
  • Comprehensive Testing Suite
  • Security Audits and Static Analysis

Installation

pip install -e .

Usage

from ecvrf import KeyManager, VRF, VRFVerifier

Initialize KeyManager

km = KeyManager()

Generate Key Pair

private_pem, public_pem = km.generate_keypair()

Initialize VRF and Verifier

vrf = VRF(km)
verifier = VRFVerifier(km)

Input Data

alpha = b"Sample input for ECVRF."

Generate Proof and Beta

beta, proof = vrf.prove(private_pem, alpha)

Verify Proof

is_valid = verifier.verify(public_pem, alpha, beta, proof)
print(f"Verification successful: {is_valid}")

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT License

Release files for python-ecvrf-4o 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-ecvrf-4o 0.1.1
File Size Uploaded
python_ecvrf_4o-0.1.1.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-ecvrf-4o 0.1.1
File Interpreter ABI Platform
python_ecvrf_4o-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / python_ecvrf_4o-0.1.1.tar.gz

Download URL python_ecvrf_4o-0.1.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f992b6c45e4298c1f7b85354fe26528e237d5bba244956dd648787ac62f81e9e
BLAKE2b-256 checksum
How to use checksums
0dc74d51d895d6095b9046020ace1048e8b44fa03013871f7321fd88570c5948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.6

Release files / python_ecvrf_4o-0.1.1-py3-none-any.whl

Download URL python_ecvrf_4o-0.1.1-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f971f2bc155354730404dc34dbf388525e97914704c2d7760ad2cde7ebab79
BLAKE2b-256 checksum
How to use checksums
b605ae89d52c663dc8b80d2aceba338d0e655e7b1006e51c26d73b325492c267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page