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

Metadata

Release files for bn256 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bn256 0.1.1
File Size Uploaded
bn256-0.1.1.tar.gz 42.3 kB Details

Release files / bn256-0.1.1.tar.gz

Download URL bn256-0.1.1.tar.gz
Size 42.3 kB
Tags Source
SHA-256 checksum
How to use checksums
952da93a0ff9e1ce0e4f706c7e974c846b46d415be4ee62679d2c3fbe157ca6c
BLAKE2b-256 checksum
How to use checksums
e44483b30abb19462aa26517d4c3d19790ebc1a89bb9f7d259fa4f551db123a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release 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