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/wallet2.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/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 5e0dd076b..40f6e08d9 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -969,6 +969,22 @@ namespace tools std::string sign(const std::string &data) const; bool verify(const std::string &data, const cryptonote::account_public_address &address, const std::string &signature) const; + /*! + * \brief sign_multisig_participant signs given message with the multisig public signer key + * \param data message to sign + * \throws if wallet is not multisig + * \return signature + */ + std::string sign_multisig_participant(const std::string& data) const; + /*! + * \brief verify_with_public_key verifies message was signed with given public key + * \param data message + * \param public_key public key to check signature + * \param signature signature of the message + * \return true if the signature is correct + */ + bool verify_with_public_key(const std::string &data, const crypto::public_key &public_key, const std::string &signature) const; + // Import/Export wallet data std::vector<tools::wallet2::transfer_details> export_outputs() const; size_t import_outputs(const std::vector<tools::wallet2::transfer_details> &outputs); |