Skip to content

Commit

Permalink
libwallet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffro256 committed Aug 24, 2024
1 parent 77a2a97 commit 8eec319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet/api/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ std::string WalletImpl::integratedAddress(const std::string &payment_id) const

std::string WalletImpl::secretViewKey() const
{
return epee::string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_view_secret_key);
return epee::string_tools::pod_to_hex(rct::sk2rct(m_wallet->get_account().get_keys().m_view_secret_key));
}

std::string WalletImpl::publicViewKey() const
Expand All @@ -905,7 +905,7 @@ std::string WalletImpl::publicViewKey() const

std::string WalletImpl::secretSpendKey() const
{
return epee::string_tools::pod_to_hex(m_wallet->get_account().get_keys().m_spend_secret_key);
return epee::string_tools::pod_to_hex(rct::sk2rct(m_wallet->get_account().get_keys().m_spend_secret_key));
}

std::string WalletImpl::publicSpendKey() const
Expand Down Expand Up @@ -1999,9 +1999,9 @@ std::string WalletImpl::getTxKey(const std::string &txid_str) const
{
clearStatus();
std::ostringstream oss;
oss << epee::string_tools::pod_to_hex(tx_key);
oss << epee::string_tools::pod_to_hex(rct::sk2rct(tx_key));
for (size_t i = 0; i < additional_tx_keys.size(); ++i)
oss << epee::string_tools::pod_to_hex(additional_tx_keys[i]);
oss << epee::string_tools::pod_to_hex(rct::sk2rct(additional_tx_keys[i]));
return oss.str();
}
else
Expand Down

0 comments on commit 8eec319

Please sign in to comment.