scipr-lab / libsnark

C++ library for zkSNARKs
Other
1.81k stars 572 forks source link

Which BN curve is implemented? #152

Open vusirikala opened 5 years ago

vusirikala commented 5 years ago

The readme file mentions that BN curve with 128 bit security is implemented. Few years back, BN256 curve is thought to have 128 bit security. After the tower number field sieve attack, now BN256 curve provides less than 110 bit security. Now, BN383 curve is said to have 128 bit security. May I know which pairing-based elliptic curve is implemented in this library?

riemann89 commented 5 years ago

It's the BN256, and it is implemented in libff. Here you can find the parameters https://github.com/scipr-lab/libff/blob/master/libff/algebra/curves/bn128/bn128_init.cpp