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.0.tar.gz (41.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bn256-0.1.0.tar.gz
  • Upload date:
  • Size: 41.2 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.0.tar.gz
Algorithm Hash digest
SHA256 9ef00712ad819da3e1d02218706b6b3985998e34d7ee3e5183b07070751fe7a3
MD5 4f6403fbbad61f18cb45afb381852aef
BLAKE2b-256 5306cd0c2a38b356646334bbfd1dad1fcc5d6903ae7d04daa5607ef3c9b65a68

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