def __init__(self):
        """Load or initialize crypto keys."""
        try:
            with open("key", "rb") as keys_file:
                keys = keys_file.read()
        except __HOLE__:
            keys = None
        if keys:
            self.pkey = public.PrivateKey(keys, STORE_ENC)
        else:
            kp = public.PrivateKey.generate()
            with open("key", "wb") as keys_file:
                keys_file.write(kp.encode(STORE_ENC))
            self.pkey = kp
dataset/ETHPy150Open stal888/Tox-QuickDNS/cryptocore.py/CryptoCore.__init__