dev@locazia: fix seed

This commit is contained in:
user 2024-03-03 14:07:04 +03:00
parent 69c64edb64
commit ff087453bc
2 changed files with 3 additions and 3 deletions

View File

@ -16,14 +16,14 @@ def load_hot_pair():
return load_hot_pair() return load_hot_pair()
public_key, private_key = crypto_sign_seed_keypair(bytes.fromhex(hot_seed)) public_key, private_key = crypto_sign_seed_keypair(bytes.fromhex(hot_seed))
return public_key, private_key return hot_seed, public_key, private_key
_extra_ton_wallet_options = {} _extra_ton_wallet_options = {}
if getenv('TON_CUSTOM_WALLET_ADDRESS'): if getenv('TON_CUSTOM_WALLET_ADDRESS'):
_extra_ton_wallet_options['address'] = Address(getenv('TON_CUSTOM_WALLET_ADDRESS')) _extra_ton_wallet_options['address'] = Address(getenv('TON_CUSTOM_WALLET_ADDRESS'))
hot_pubkey, hot_privkey = load_hot_pair() hot_seed, hot_pubkey, hot_privkey = load_hot_pair()
service_wallet = WalletV3CR3( service_wallet = WalletV3CR3(
private_key=hot_privkey, private_key=hot_privkey,
public_key=hot_pubkey, public_key=hot_pubkey,

View File

@ -1,7 +1,7 @@
from httpx import AsyncClient from httpx import AsyncClient
from app.core._config import PROJECT_HOST from app.core._config import PROJECT_HOST
from app.core.logger import make_log from app.core.logger import make_log
from app.core._secrets import hot_privkey from app.core._secrets import hot_privkey, hot_seed
from tonsdk.utils import sign_message from tonsdk.utils import sign_message
from base58 import b58encode from base58 import b58encode
from json import dumps from json import dumps