mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 07:41:32 +02:00
support save with get_address_file_buffer, get_keys_file_buffer,
get_cache_file_buffer
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user