Skip to content

Commit 8eec319

Browse files
committed
libwallet fixes
1 parent 77a2a97 commit 8eec319

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wallet/api/wallet.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ std::string WalletImpl::integratedAddress(const std::string &payment_id) const
895895

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

901901
std::string WalletImpl::publicViewKey() const
@@ -905,7 +905,7 @@ std::string WalletImpl::publicViewKey() const
905905

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

911911
std::string WalletImpl::publicSpendKey() const
@@ -1999,9 +1999,9 @@ std::string WalletImpl::getTxKey(const std::string &txid_str) const
19991999
{
20002000
clearStatus();
20012001
std::ostringstream oss;
2002-
oss << epee::string_tools::pod_to_hex(tx_key);
2002+
oss << epee::string_tools::pod_to_hex(rct::sk2rct(tx_key));
20032003
for (size_t i = 0; i < additional_tx_keys.size(); ++i)
2004-
oss << epee::string_tools::pod_to_hex(additional_tx_keys[i]);
2004+
oss << epee::string_tools::pod_to_hex(rct::sk2rct(additional_tx_keys[i]));
20052005
return oss.str();
20062006
}
20072007
else

0 commit comments

Comments
 (0)