Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page