An Elliptic Curve Verifiable Random Function (ECVRF) library, initially designed for Omne.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_ecvrf_4o-0.1.0.tar.gz
(13.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_ecvrf_4o-0.1.0.tar.gz.
File metadata
- Download URL: python_ecvrf_4o-0.1.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b63db836e9486d8986ee0466fb3176be09b1b4d2f315256b796877d4ab798f42
|
|
| MD5 |
fbff02d27a7aeef3cfc5a78493ab97be
|
|
| BLAKE2b-256 |
046332afda7e1bb5ea7fb775e44b65cc9cd9b27c9883610ff27fd029e85cbde8
|
File details
Details for the file python_ecvrf_4o-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_ecvrf_4o-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed87c392ff02bdc16c6fc4e2ca7d2fc72d35c5c5fa849e8a511b1d828343bfcf
|
|
| MD5 |
a69e6534af4eee012853fb92ae106845
|
|
| BLAKE2b-256 |
38482d1da32f43d2846c705bd79140b715bf905c27bde89a7ee1f27a64f0fdab
|