I'm using Charm to implement a scheme and I know it has "SS512", "MNT159" and "prime192v1". I don't know if Charm includes BN curve? If it doesn't, how to implement it with Charm.
Asked
Active
Viewed 125 times
1 Answers
0
According to this file pairingcurves.py in the Charm repo, you should be able to implement BN groups too. I have not implemented it personally but I think this should work:
from charm.toolbox.pairinggroup import PairingGroup,ZR,G1,G2,GT,pair
group = PairingGroup('BN158')
You can further refer to the Charm-crypto docs here.
I know this answer is a bit late, but hope it helps :-)