Python bindings for ark-vrf
Project description
py-ark-vrf
Python bindings for ARK VRF (Verifiable Random Function) implementation.
Installation
You can install the package using pip:
pip install py-ark-vrf
Usage
Here's a basic example of how to use the VRF functionality:
import py_ark_vrf as vrf
# Create a secret key
sk = vrf.SecretKey(b"your-secret-key")
pk = sk.public()
# Create a VRF input
input_data = b"test input"
vrf_input = vrf.VRFInput(input_data)
# Generate IETF proof
ietf_proof = sk.prove_ietf(vrf_input)
is_valid = pk.verify_ietf(vrf_input, ietf_proof.output, ietf_proof)
# Generate Pedersen proof
pedersen_proof = sk.prove_pedersen(vrf_input)
is_valid = pk.verify_pedersen(vrf_input, pedersen_proof.output, pedersen_proof)
Features
- IETF VRF proof generation and verification
- Pedersen VRF proof generation and verification
- Ring VRF support
- Type hints support
Requirements
- Python 3.7 or higher
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distributions
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 py_ark_vrf-0.1.0.tar.gz.
File metadata
- Download URL: py_ark_vrf-0.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 PyPy/7.3.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9dd82dccc2cdd9488f310063273a2c616ed26f28489b70886093dcf789ec0ea
|
|
| MD5 |
b448367f4960363afbbde16cf7599ec5
|
|
| BLAKE2b-256 |
d38c51caa7d270343570ceb840a2b35031759eff240408c1c2e2906ff2dc1312
|
File details
Details for the file py_ark_vrf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_ark_vrf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 PyPy/7.3.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8a0ac7061c72e951aa63da5be7ee7e288216de8552189f31f83e297e5aa271
|
|
| MD5 |
af4e157932874c908a4f2e96ddcfcd77
|
|
| BLAKE2b-256 |
8655f23e4465c4d9e1b7e01c6ac8b1e7475f0540007459bbaa187889d1ed497a
|
File details
Details for the file py_ark_vrf-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: py_ark_vrf-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
505dc1898b3dd724f46616b3cdc139997aee021f9942c82e608522773af66ef9
|
|
| MD5 |
b08aafd622ee66686387cbb0d2d11e34
|
|
| BLAKE2b-256 |
b36432b31fca9287c8229a1a33829967e3b675d04e2fd4130e4a5ffcefb0b96e
|