mirror of
https://github.com/monero-project/monero.git
synced 2026-01-13 05:16:48 -08:00
wallet: allow signing a message with spend or view key
This commit is contained in:
committed by
Sarang Noether
parent
5946002105
commit
743608ec16
@@ -1998,7 +1998,7 @@ bool WalletImpl::checkReserveProof(const std::string &address, const std::string
|
||||
|
||||
std::string WalletImpl::signMessage(const std::string &message)
|
||||
{
|
||||
return m_wallet->sign(message);
|
||||
return m_wallet->sign(message, tools::wallet2::sign_with_spend_key);
|
||||
}
|
||||
|
||||
bool WalletImpl::verifySignedMessage(const std::string &message, const std::string &address, const std::string &signature) const
|
||||
@@ -2008,7 +2008,7 @@ bool WalletImpl::verifySignedMessage(const std::string &message, const std::stri
|
||||
if (!cryptonote::get_account_address_from_str(info, m_wallet->nettype(), address))
|
||||
return false;
|
||||
|
||||
return m_wallet->verify(message, info.address, signature);
|
||||
return m_wallet->verify(message, info.address, signature).valid;
|
||||
}
|
||||
|
||||
std::string WalletImpl::signMultisigParticipant(const std::string &message) const
|
||||
|
||||
Reference in New Issue
Block a user