aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/cryptonote_format_utils.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-25 16:37:17 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-25 16:37:17 +0200
commitc6306e75e7bb55c593aa7dcdd697cdc202696e0a (patch)
tree3f07b785f2e2ce47c8e97bdd2a86c9d1bc5f5e32 /src/cryptonote_basic/cryptonote_format_utils.h
parent1f9058187c76b60f26930410ed3c162846441e20 (diff)
parent651baaec46840290066be1ffec6e999f7919e445 (diff)
downloadmonzero-core-c6306e75e7bb55c593aa7dcdd697cdc202696e0a.tar.gz
monzero-core-c6306e75e7bb55c593aa7dcdd697cdc202696e0a.tar.xz
monzero-core-c6306e75e7bb55c593aa7dcdd697cdc202696e0a.zip
Merge pull request #2257
651baaec wallet: add encrypted seed functionality (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.h')
-rw-r--r--src/cryptonote_basic/cryptonote_format_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.h b/src/cryptonote_basic/cryptonote_format_utils.h
index d8ccf8eec..00080fb98 100644
--- a/src/cryptonote_basic/cryptonote_format_utils.h
+++ b/src/cryptonote_basic/cryptonote_format_utils.h
@@ -212,6 +212,8 @@ namespace cryptonote
bool is_valid_decomposed_amount(uint64_t amount);
void get_hash_stats(uint64_t &tx_hashes_calculated, uint64_t &tx_hashes_cached, uint64_t &block_hashes_calculated, uint64_t & block_hashes_cached);
+ crypto::secret_key encrypt_key(const crypto::secret_key &key, const std::string &passphrase);
+ crypto::secret_key decrypt_key(const crypto::secret_key &key, const std::string &passphrase);
#define CHECKED_GET_SPECIFIC_VARIANT(variant_var, specific_type, variable_name, fail_return_val) \
CHECK_AND_ASSERT_MES(variant_var.type() == typeid(specific_type), fail_return_val, "wrong variant type: " << variant_var.type().name() << ", expected " << typeid(specific_type).name()); \
specific_type& variable_name = boost::get<specific_type>(variant_var);