mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
rename sign() and verify() to signMessage() and verifyMessage()2578
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<string> 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<monero_check_tx> 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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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<monero_subaddress> get_subaddresses(const uint32_t account_idx, const vector<uint32_t>& 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 --------------------------------
|
||||
|
||||
Reference in New Issue
Block a user