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.1.tar.gz (633.2 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.1-cp312-cp312-macosx_11_0_arm64.whl (529.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: py_ark_vrf-0.1.1.tar.gz
  • Upload date:
  • Size: 633.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 PyPy/7.3.19

File hashes

Hashes for py_ark_vrf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b6f929a935eb5bb7f1d9a4f17817caeaa092586f10696273517d611192531779
MD5 a12de063ec6e3702a04814f39010290d
BLAKE2b-256 d893d8f4fea68e17a0624c1e422f4251225e0c02efe69c23ef37248092659e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ark_vrf-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22c81104ad6400b1b9f119158cf9b693bad0ed58acd20d6bc2a2643cf9208c28
MD5 9b255014f6ed60c267a2f886adae82ed
BLAKE2b-256 454b777ce553586975f734fa1e2e9519e8c13ca6b0abc4d07cf89e59965b036f

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