JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
552 stars 167 forks source link

BN curve #231

Open cryptoliu17 opened 5 years ago

cryptoliu17 commented 5 years ago

Hi all,

I don't know if Charm includes BN curve? If it doesn't, how to import the BN curve? Could you please provide a example about how to use Charm combined with BN curve?

Thanks!

matsevers commented 4 years ago

Hi @cliu717,

depending of the used library (pbc, miracl or relic) different curves are supported. In all cases BN curves are supported. In the standard case the pbc library is used.

The following link lists all supported curves for pairings: https://github.com/JHUISI/charm/blob/dev/charm/toolbox/pairingcurves.py#L79-L84

You can find an example for the use of the curves in the documentation of the BLS signatures: https://jhuisi.github.io/charm/charm/schemes/pksig/pksig_bls04.html

Greetings!