Пример #1
0
 def serialize(self):
     c_str = lib.encryption_key_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #2
0
 def serialize(self):
     c_str = lib.p2partialsig_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #3
0
 def serialize(self):
     c_str = lib.p1signature_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #4
0
 def serialize(self):
     c_str = lib.p2_paillier_public_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #5
0
 def serialize(self):
     c_str = lib.party2private_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #6
0
 def serialize(self):
     c_str = lib.bigint_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #7
0
 def serialize(self):
     c_str = lib.verification_aid_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #8
0
 def serialize(self):
     c_str = lib.correct_key_proof_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #9
0
 def serialize(self):
     c_str = lib.challenge_bits_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)
Пример #10
0
 def serialize(self):
     c_str = lib.p2_keygen1_serialize(self.inst)
     py_str = ffi.string(c_str)
     lib.c_str_delete(c_str)
     return loads(py_str)