mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
wallet: sign_tx: get tx pubkey from extra
This commit is contained in:
parent
67d190ce7c
commit
1062b172b6
1 changed files with 1 additions and 3 deletions
|
@ -7287,9 +7287,7 @@ bool wallet2::sign_tx(unsigned_tx_set &exported_txs, std::vector<wallet2::pendin
|
||||||
crypto::key_derivation derivation;
|
crypto::key_derivation derivation;
|
||||||
std::vector<crypto::key_derivation> additional_derivations;
|
std::vector<crypto::key_derivation> additional_derivations;
|
||||||
|
|
||||||
// compute public keys from out secret keys
|
crypto::public_key tx_pub_key = get_tx_pub_key_from_extra(tx);
|
||||||
crypto::public_key tx_pub_key;
|
|
||||||
crypto::secret_key_to_public_key(txs[n].tx_key, tx_pub_key);
|
|
||||||
std::vector<crypto::public_key> additional_tx_pub_keys;
|
std::vector<crypto::public_key> additional_tx_pub_keys;
|
||||||
for (const crypto::secret_key &skey: txs[n].additional_tx_keys)
|
for (const crypto::secret_key &skey: txs[n].additional_tx_keys)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue