Overview of mcl pairing-based cryptography library
mastermcl is a portable and fast library for pairing-based cryptography. It supports the optimal Ate pairing over BN curves and BLS curves.
Supported Curves
- BN curves:
BN254: BN curve over a 254-bit prime.BN_SNARK1: BN curve over a 254-bit prime with high 2-adicity.BN381_1: BN curve over a 381-bit prime.BN462: BN curve over a 462-bit prime.
- BLS curves:
BLS12_381BLS12_377
Breaking Changes in Version v3
- The default
mcl.{a,lib}has a maximum size of 384-bit for the definition fieldFpand 256-bit for the order fieldFr(MCL_FP_BIT=384,MCL_FR_BIT=256). - Arguments for
Fp/Frinitialization functions have changed. mclbn***.{a,lib}has been merged intomcl.{a,lib}and removed.