JHUISI / charm

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

SystemError occurs when adding and subtracting elements on GT #304

Open xiale2015 opened 4 months ago

xiale2015 commented 4 months ago

the programma:

from charm.toolbox.pairinggroup import PairingGroup, ZR, G1, G2, GT, pair
groupObj = PairingGroup('MNT224') 
gt = groupObj.random(GT)
g2 = groupObj.random(GT)
result = gt -g2

the console outputs:

Traceback (most recent call last):
  File "/home/x/ex/scheme.py", line 284, in <module>
    main()
  File "/home/x/ex/scheme.py", line 252, in main
    gt - g2
SystemError: error return without exception set