Skip to main content

python bn256

Project description

Bn256 of Python

This package is a fully tested python edition of Golang crypto/bn256.

How to install

pip install bn256

How to Use

from bn256 import G1, G2, GT

k1, g1 = G1.random_g1()
k2, g2 = G2.random_g2()

gt = GT.pair(g1, g2)

print(gt.marshal().hex())

Refer

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

bn256-0.1.1.tar.gz (42.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bn256-0.1.1.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for bn256-0.1.1.tar.gz
Algorithm Hash digest
SHA256 952da93a0ff9e1ce0e4f706c7e974c846b46d415be4ee62679d2c3fbe157ca6c
MD5 39f92080848ac2e07ccadc4a316e0124
BLAKE2b-256 e44483b30abb19462aa26517d4c3d19790ebc1a89bb9f7d259fa4f551db123a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page