diff --git a/src/wallet/monero_wallet_core.cpp b/src/wallet/monero_wallet_core.cpp index dc1e366..6b4d722 100644 --- a/src/wallet/monero_wallet_core.cpp +++ b/src/wallet/monero_wallet_core.cpp @@ -3187,6 +3187,19 @@ namespace monero { } } + /** + * Wallet import and export using buffers and not the file system. + */ + std::string monero_wallet_core::get_address_file_buffer() { + return m_w2->get_address_file_buffer(); + } + std::string monero_wallet_core::get_keys_file_buffer(const epee::wipeable_string& password, bool watch_only) { + return m_w2->get_keys_file_buffer(password, watch_only); + } + std::string monero_wallet_core::get_cache_file_buffer(const epee::wipeable_string& password) { + return m_w2->get_cache_file_buffer(password); + } + // ------------------------------- PRIVATE HELPERS ---------------------------- void monero_wallet_core::init_common() { diff --git a/src/wallet/monero_wallet_core.h b/src/wallet/monero_wallet_core.h index 41e9c7e..77a3248 100644 --- a/src/wallet/monero_wallet_core.h +++ b/src/wallet/monero_wallet_core.h @@ -265,6 +265,13 @@ namespace monero { void move_to(string path, string password); void close(bool save = false); + /** + * Wallet import and export using buffers and not the file system. + */ + std::string get_address_file_buffer(); + std::string get_keys_file_buffer(const epee::wipeable_string& password, bool watch_only); + std::string get_cache_file_buffer(const epee::wipeable_string& password); + // --------------------------------- PRIVATE -------------------------------- private: