diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-07-20 13:50:41 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-07-20 13:50:41 +0200 |
commit | 77e1d8774a982342a763a9468560225fca97a52e (patch) | |
tree | a375ca47ca2cf9f03cfb5dd064f3d6090efc6b13 /src/wallet/wallet2.h | |
parent | Merge pull request #889 (diff) | |
parent | wallet: add command and RPC to sign/verify data (diff) | |
download | monero-77e1d8774a982342a763a9468560225fca97a52e.tar.xz |
Merge pull request #818
89d9f38 wallet: add command and RPC to sign/verify data (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index c5149a10c..ca5cec43c 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -386,6 +386,9 @@ namespace tools void set_tx_note(const crypto::hash &txid, const std::string ¬e); std::string get_tx_note(const crypto::hash &txid) const; + 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; + private: /*! * \brief Stores wallet information to wallet file. |