Skip to content

Commit

Permalink
Merge pull request #9049
Browse files Browse the repository at this point in the history
1062b17 wallet: sign_tx: get tx pubkey from extra (tobtoht)
  • Loading branch information
luigi1111 committed Jan 18, 2024
2 parents 5f66460 + 1062b17 commit 2a6f7ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7304,9 +7304,7 @@ bool wallet2::sign_tx(unsigned_tx_set &exported_txs, std::vector<wallet2::pendin
crypto::key_derivation derivation;
std::vector<crypto::key_derivation> additional_derivations;

// compute public keys from out secret keys
crypto::public_key tx_pub_key;
crypto::secret_key_to_public_key(txs[n].tx_key, tx_pub_key);
crypto::public_key tx_pub_key = get_tx_pub_key_from_extra(tx);
std::vector<crypto::public_key> additional_tx_pub_keys;
for (const crypto::secret_key &skey: txs[n].additional_tx_keys)
{
Expand Down

0 comments on commit 2a6f7ef

Please sign in to comment.