def from_binary(cls, x): d = json.loads(zlib.decompress(x)) return cls(util.tuple_to_key(d['public_key']), DomainRecord.from_obj(d['record']), d['signature'])
def from_binary(cls, x): return cls(util.tuple_to_key(json.loads(zlib.decompress(x))))