Exemple #1
0
 def to_binary(self):
     return zlib.compress(
         json.dumps(
             dict(public_key=util.key_to_tuple(self._public_key),
                  record=self._record.to_obj(),
                  signature=self._signature)))
Exemple #2
0
 def to_binary(self):
     return zlib.compress(json.dumps(dict(public_key=util.key_to_tuple(self._public_key), record=self._record.to_obj(), signature=self._signature)))
Exemple #3
0
 def to_binary(self):
     return zlib.compress(json.dumps(util.key_to_tuple(self._private_key)))
Exemple #4
0
 def to_binary(self):
     return zlib.compress(json.dumps(util.key_to_tuple(self._private_key)))