diff --git a/app/core/_secrets.py b/app/core/_secrets.py index 4fc8567..e24b264 100644 --- a/app/core/_secrets.py +++ b/app/core/_secrets.py @@ -12,10 +12,11 @@ def load_hot_pair(): if hot_seed is None: make_log("HotWallet", "No seed found, generating new one", level='info') hot_seed = urandom(32) - active_config.set('private_key', hot_seed) + active_config.set('private_key', hot_seed.hex()) return load_hot_pair() - public_key, private_key = crypto_sign_seed_keypair(bytes.fromhex(hot_seed)) + hot_seed = bytes.fromhex(hot_seed) + public_key, private_key = crypto_sign_seed_keypair(hot_seed) return hot_seed, public_key, private_key