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)))
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)))
def to_binary(self): return zlib.compress(json.dumps(util.key_to_tuple(self._private_key)))