diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-02-22 22:10:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-02-22 22:10:55 +0000 |
commit | 4513b4cd2b9600f0085e36a8f1fb9268bc018875 (patch) | |
tree | b2a1a347775fd2b47bfd18a41793900191434423 /src/cryptonote_core/account.h | |
parent | Merge pull request #681 (diff) | |
download | monero-4513b4cd2b9600f0085e36a8f1fb9268bc018875.tar.xz |
simplewallet: add a new --restore-from-keys option
It is similar in use to --restore-from-view-key, but also expects
a spend private key.
Requested by luigi1112, and useful to restore MyMonero wallets.
Diffstat (limited to 'src/cryptonote_core/account.h')
-rw-r--r-- | src/cryptonote_core/account.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/account.h b/src/cryptonote_core/account.h index 38f61ebd4..41a119b07 100644 --- a/src/cryptonote_core/account.h +++ b/src/cryptonote_core/account.h @@ -58,6 +58,7 @@ namespace cryptonote public: account_base(); crypto::secret_key generate(const crypto::secret_key& recovery_key = crypto::secret_key(), bool recover = false, bool two_random = false); + void create_from_keys(const cryptonote::account_public_address& address, const crypto::secret_key& spendkey, const crypto::secret_key& viewkey); void create_from_viewkey(const cryptonote::account_public_address& address, const crypto::secret_key& viewkey); const account_keys& get_keys() const; std::string get_public_address_str(bool testnet) const; |