ethereum / research

MIT License
1.79k stars 584 forks source link

blst library for python #146

Open gouri9230 opened 1 year ago

gouri9230 commented 1 year ago

Hello, I am new to the cryptography and blockchain world. I am implementing verkle tree, its proof generation and verification. For this purpose I need to import the blst library to use BLS12_381 elliptic curve. I did git clone blst but i am unable to install it in my ubuntu system and getting error during cmake installation. Could you please tell me how can I install blst library for python, or if there are any other libraries that performs the same functionality as blst supported in python?

ralexstokes commented 1 year ago

have you tried this one? https://github.com/ethereum/py_ecc

dankrad commented 1 year ago

You can generate the blst shared object and python interface using the run.me file in the python bindings directiory (https://github.com/supranational/blst/tree/master/bindings/python).

Then just copy the generated files to wherever you need them.