diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-06-08 14:40:06 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-08 14:40:06 -0500 |
commit | 00635bd68ba3a90319d3d5fff4c5bfe26b857d53 (patch) | |
tree | 9094a03ddbee02d9e3eddcc6e968212d1eadd8ef /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #3887 (diff) | |
parent | Wallet: added methods to sign and verify arbitrary message with multisig publ... (diff) | |
download | monero-00635bd68ba3a90319d3d5fff4c5bfe26b857d53.tar.xz |
Merge pull request #3598
b21bc00 Wallet: added methods to sign and verify arbitrary message with multisig public signer's key (libwallet & wallet api) (naughtyfox)
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index 27d290e68..d0c4b36b9 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -825,6 +825,21 @@ struct Wallet */ virtual bool verifySignedMessage(const std::string &message, const std::string &addres, const std::string &signature) const = 0; + /*! + * \brief signMultisigParticipant signs given message with the multisig public signer key + * \param message message to sign + * \return signature in case of success. Sets status to Error and return empty string in case of error + */ + virtual std::string signMultisigParticipant(const std::string &message) const = 0; + /*! + * \brief verifyMessageWithPublicKey verifies that message was signed with the given public key + * \param message message + * \param publicKey hex encoded public key + * \param signature signature of the message + * \return true if the signature is correct. false and sets error state in case of error + */ + virtual bool verifyMessageWithPublicKey(const std::string &message, const std::string &publicKey, const std::string &signature) const = 0; + virtual bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error) = 0; virtual std::string getDefaultDataDir() const = 0; |