dev@locazia: critical secrets fix
This commit is contained in:
parent
5e1ec5423a
commit
1f39acf33a
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue