arkworks-rs/marlin

question on bn254

csc290Spr2018 opened this issue · 3 comments

Can ark-bn254 be plugged in to replace ark-bls12-381? We'd like to do performance comparison with several other zkSnark tools based on bn254.
Thanks!

Yes, they should be replaceable since they both implement the pairing-friendly curve traits.

BN254 would be faster than BLS12-381 because the fields are much smaller (note that BN254 no longer achieves 128-bit security, and is likely smaller than 100-bit). Nevertheless, it is a popular choice for zk-Rollup today.

Thanks! We've added bn254, it's about 2 times faster than bls12-381.

Marked as closed.