Skip to content

Elliptic curve crypto in python including sm2, secp256k1, alt_bn128, and bls12_381.

Notifications You must be signed in to change notification settings

Yinbenxin/pyecc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py_ecc

Python versions

Elliptic curve crypto in python including sm2, secp256k1, alt_bn128, and bls12_381.

Installation

pip install .

其中打点方式参考

test/hash2curve.py

PSI方式参考

test/hash2curve.py

测试效果:

机器 MacBook Pro : 2 GHz 四核Intel Core i5 16GB
hash2curve次数 平均2次
hash2curve速度 0.2ms/次
点乘速度 0.4ms/次
点除速度 2.6ms/次

主要参考:

py_ecc

sm2

About

Elliptic curve crypto in python including sm2, secp256k1, alt_bn128, and bls12_381.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages