diff --git a/src/wallet/monero_wallet.h b/src/wallet/monero_wallet.h index e0f8cef..2e7f240 100644 --- a/src/wallet/monero_wallet.h +++ b/src/wallet/monero_wallet.h @@ -1139,8 +1139,8 @@ namespace monero { * @param msg is the message to sign * @return the signature */ - virtual string sign(const string& msg) const { - throw runtime_error("sign() not supported"); + virtual string sign_message(const string& msg) const { + throw runtime_error("sign_message() not supported"); } /** @@ -1151,8 +1151,8 @@ namespace monero { * @param signature is the signature * @return true if the signature is good, false otherwise */ - virtual bool verify(const string& msg, const string& address, const string& signature) const { - throw runtime_error("verify() not supported"); + virtual bool verify_message(const string& msg, const string& address, const string& signature) const { + throw runtime_error("verify_message() not supported"); } /** diff --git a/src/wallet/monero_wallet_core.cpp b/src/wallet/monero_wallet_core.cpp index 17df5d1..2157220 100644 --- a/src/wallet/monero_wallet_core.cpp +++ b/src/wallet/monero_wallet_core.cpp @@ -2549,11 +2549,11 @@ namespace monero { } } - string monero_wallet_core::sign(const string& msg) const { + string monero_wallet_core::sign_message(const string& msg) const { return m_w2->sign(msg); } - bool monero_wallet_core::verify(const string& msg, const string& address, const string& signature) const { + bool monero_wallet_core::verify_message(const string& msg, const string& address, const string& signature) const { // validate and parse address or url cryptonote::address_parse_info info; diff --git a/src/wallet/monero_wallet_core.h b/src/wallet/monero_wallet_core.h index b413bf8..726044d 100644 --- a/src/wallet/monero_wallet_core.h +++ b/src/wallet/monero_wallet_core.h @@ -231,8 +231,8 @@ namespace monero { monero_tx_set parse_tx_set(const monero_tx_set& tx_set); string sign_txs(const string& unsigned_tx_hex); vector submit_txs(const string& signed_tx_hex); - string sign(const string& msg) const; - bool verify(const string& msg, const string& address, const string& signature) const; + string sign_message(const string& msg) const; + bool verify_message(const string& msg, const string& address, const string& signature) const; string get_tx_key(const string& tx_hash) const; shared_ptr check_tx_key(const string& tx_hash, const string& txKey, const string& address) const; string get_tx_proof(const string& tx_hash, const string& address, const string& message) const; diff --git a/src/wallet/monero_wallet_keys.cpp b/src/wallet/monero_wallet_keys.cpp index fa4afbe..96c7056 100644 --- a/src/wallet/monero_wallet_keys.cpp +++ b/src/wallet/monero_wallet_keys.cpp @@ -269,14 +269,14 @@ namespace monero { return subaddresses; } - string monero_wallet_keys::sign(const string& msg) const { - cout << "monero_wallet_keys::sign()" << endl; - throw runtime_error("monero_wallet_keys::sign() not implemented"); + string monero_wallet_keys::sign_message(const string& msg) const { + cout << "monero_wallet_keys::sign_message()" << endl; + throw runtime_error("monero_wallet_keys::sign_message() not implemented"); } - bool monero_wallet_keys::verify(const string& msg, const string& address, const string& signature) const { - cout << "monero_wallet_keys::verify()" << endl; - throw runtime_error("monero_wallet_keys::verify() not implemented"); + bool monero_wallet_keys::verify_message(const string& msg, const string& address, const string& signature) const { + cout << "monero_wallet_keys::verify_message()" << endl; + throw runtime_error("monero_wallet_keys::verify_message() not implemented"); } void monero_wallet_keys::close(bool save) { diff --git a/src/wallet/monero_wallet_keys.h b/src/wallet/monero_wallet_keys.h index 053dc1f..383c630 100644 --- a/src/wallet/monero_wallet_keys.h +++ b/src/wallet/monero_wallet_keys.h @@ -131,8 +131,8 @@ namespace monero { monero_integrated_address decode_integrated_address(const string& integrated_address) const; monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const; vector get_subaddresses(const uint32_t account_idx, const vector& subaddress_indices) const; - string sign(const string& msg) const; - bool verify(const string& msg, const string& address, const string& signature) const; + string sign_message(const string& msg) const; + bool verify_message(const string& msg, const string& address, const string& signature) const; void close(bool save = false); // --------------------------------- PRIVATE --------------------------------