Skip to content

Fully tested python bn256 as golang crypto/bn256

Notifications You must be signed in to change notification settings

hanzhichao/bn256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fully tested python bn256 as golang crypto/bn256

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages