When I use objectToBytes function with ciphertext im getting this error
Traceback (most recent call last):
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 38, in serializeObject
serializer = serializers[type(Objects)]
KeyError: <class 'charm.toolbox.node.BinNode'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "crypto.py", line 98, in <module>
cipher = encryption(filename,pk,policy_string,pairing_group)
File "crypto.py", line 27, in encryption
objectToBytes(session_key_ctxt,group)
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 135, in objectToBytes
object_ser = serializeObject(object, group)
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 42, in serializeObject
return serializer(Objects, group)
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 15, in serializeDict
for k, o in Object.items()
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 15, in <dictcomp>
for k, o in Object.items()
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/core/engine/util.py", line 40, in serializeObject
return group.serialize(Objects)
File "/home/t00m/py37/lib/python3.7/site-packages/Charm_Crypto-0.50-py3.7-linux-x86_64.egg/charm/toolbox/pairinggroup.py", line 120, in serialize
return serialize(obj, compression)
TypeError: Invalid element type.
When I use
objectToBytes
function with ciphertext im getting this errorPackages Version