scipr-lab / libff

C++ library for Finite Fields and Elliptic Curves
Other
149 stars 82 forks source link

BLS12-381 curve #71

Closed yelhousni closed 3 years ago

yelhousni commented 3 years ago

72

Add BLS12-381 support

Pratyush commented 3 years ago

I believe the generator is the same as in bellman:

https://github.com/zkcrypto/bls12_381/blob/8fe77daf444efdcf70c5fead1d152a100d62d8ff/src/scalar.rs#L99

It’s in Montgomery form. That might resolve the discrepancy

ValarDragon commented 3 years ago

Thanks! You're right it is the same generator then, didn't realize it was encoded there

ValarDragon commented 3 years ago

Thank you for the PR!