Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_ark_vrf-0.1.2.tar.gz (633.9 kB view details)

Uploaded Source

Built Distribution

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

py_ark_vrf-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file py_ark_vrf-0.1.2.tar.gz.

File metadata

  • Download URL: py_ark_vrf-0.1.2.tar.gz
  • Upload date:
  • Size: 633.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_ark_vrf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d767cae2dfcf36fb079c602500845d86bf4badccd43978fda70fbcbfa1db8dc9
MD5 e28c77a55a72ad22b55ec984346f4f9c
BLAKE2b-256 29839d658042326c43c26a862f6e36c3af6e36ad8c8121055c430e19bd063a60

See more details on using hashes here.

File details

Details for the file py_ark_vrf-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for py_ark_vrf-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9766e6aeba42d0038f6629ec14deff288b865e16099844460cc5245d50319ad0
MD5 a6aa9acc9170bcc5bf45f5826e107bcc
BLAKE2b-256 3d42066cd102ffae95610c22687a88e76b7c8ba3e97c0146de17e13467f6eb8d

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