dev@locazia: critical secrets fix

This commit is contained in:
user 2024-03-03 14:14:03 +03:00
parent 5e1ec5423a
commit 1f39acf33a
1 changed files with 3 additions and 2 deletions

View File

@ -12,10 +12,11 @@ def load_hot_pair():
if hot_seed is None: if hot_seed is None:
make_log("HotWallet", "No seed found, generating new one", level='info') make_log("HotWallet", "No seed found, generating new one", level='info')
hot_seed = urandom(32) hot_seed = urandom(32)
active_config.set('private_key', hot_seed) active_config.set('private_key', hot_seed.hex())
return load_hot_pair() 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 return hot_seed, public_key, private_key