diff --git a/docs/monero__utils_8h_source.html b/docs/monero__utils_8h_source.html
index 02c43910e..711a81d70 100644
--- a/docs/monero__utils_8h_source.html
+++ b/docs/monero__utils_8h_source.html
@@ -77,7 +77,7 @@
58 #include "wallet/monero_wallet_model.h"
59 #include "cryptonote_basic/cryptonote_basic.h"
- 60 #include "serialization/keyvalue_serialization.h"
+ 60 #include "serialization/keyvalue_serialization.h"
61 #include "storages/portable_storage.h"
@@ -88,107 +88,111 @@
72 static const int RING_SIZE = 12;
-
+
-
-
-
-
- 81 void json_to_binary(
const std::string &json, std::string &bin);
- 82 void binary_to_json(
const std::string &bin, std::string &json);
- 83 void binary_blocks_to_json(
const std::string &bin, std::string &json);
+ 77 bool is_valid_private_view_key(
const std::string& private_view_key);
+ 78 bool is_valid_private_spend_key(
const std::string& private_spend_key);
+
+ 80 void validate_private_view_key(
const std::string& private_view_key);
+ 81 void validate_private_spend_key(
const std::string& private_spend_key);
+
+
-
-
- 87 std::string serialize(
const rapidjson::Document& doc);
+ 85 void json_to_binary(
const std::string &json, std::string &bin);
+ 86 void binary_to_json(
const std::string &bin, std::string &json);
+ 87 void binary_blocks_to_json(
const std::string &bin, std::string &json);
-
- 95 void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field) {
- 96 rapidjson::Value field_key(key.c_str(), key.size(), allocator);
- 97 field.SetInt64((uint64_t) val);
- 98 root.AddMember(field_key, field, allocator);
-
- 100 void add_json_member(std::string key, std::string val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field);
- 101 void add_json_member(std::string key,
bool val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root);
-
-
- 104 template <
class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<std::shared_ptr<T>>& vals) {
- 105 rapidjson::Value value_arr(rapidjson::kArrayType);
- 106 for (
const auto& val : vals) {
- 107 value_arr.PushBack(val->to_rapidjson_val(allocator), allocator);
-
-
-
-
-
- 113 template <
class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<T>& vals) {
- 114 rapidjson::Value value_arr(rapidjson::kArrayType);
- 115 for (
const auto& val : vals) {
- 116 value_arr.PushBack(val.to_rapidjson_val(allocator), allocator);
-
-
-
-
- 121 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<std::string>& strs);
- 122 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint8_t>& nums);
- 123 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint32_t>& nums);
- 124 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint64_t>& nums);
-
-
-
-
+
+
+ 91 std::string serialize(
const rapidjson::Document& doc);
+
+
+ 99 void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field) {
+ 100 rapidjson::Value field_key(key.c_str(), key.size(), allocator);
+ 101 field.SetInt64((uint64_t) val);
+ 102 root.AddMember(field_key, field, allocator);
+
+ 104 void add_json_member(std::string key, std::string val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field);
+ 105 void add_json_member(std::string key,
bool val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root);
+
+
+ 108 template <
class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<std::shared_ptr<T>>& vals) {
+ 109 rapidjson::Value value_arr(rapidjson::kArrayType);
+ 110 for (
const auto& val : vals) {
+ 111 value_arr.PushBack(val->to_rapidjson_val(allocator), allocator);
+
+
+
+
+
+ 117 template <
class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<T>& vals) {
+ 118 rapidjson::Value value_arr(rapidjson::kArrayType);
+ 119 for (
const auto& val : vals) {
+ 120 value_arr.PushBack(val.to_rapidjson_val(allocator), allocator);
+
+
+
+
+ 125 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<std::string>& strs);
+ 126 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint8_t>& nums);
+ 127 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint32_t>& nums);
+ 128 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator,
const std::vector<uint64_t>& nums);
- 130 std::string serialize(
const boost::property_tree::ptree& node);
- 131 void deserialize(
const std::string& json, boost::property_tree::ptree& root);
-
-
-
-
-
- 149 std::shared_ptr<monero_block>
cn_block_to_block(
const cryptonote::block& cn_block);
-
- 158 std::shared_ptr<monero_tx>
cn_tx_to_tx(
const cryptonote::transaction& cn_tx,
bool init_as_tx_wallet =
false);
-
- 165 static std::string get_pruned_tx_json(cryptonote::transaction &tx)
-
- 167 std::stringstream ss;
- 168 json_archive<true> ar(ss);
- 169 bool r = tx.serialize_base(ar);
- 170 CHECK_AND_ASSERT_MES(r, std::string(),
"Failed to serialize rct signatures base");
-
-
-
- 179 static void free(std::shared_ptr<monero_block> block) {
- 180 for (std::shared_ptr<monero_tx>& tx : block->m_txs) {
-
-
- 183 if (tx_wallet !=
nullptr) {
- 184 if (tx_wallet->m_outgoing_transfer != boost::none) tx_wallet->m_outgoing_transfer.get()->m_tx.reset();
- 185 for (std::shared_ptr<monero_transfer> transfer : tx_wallet->m_incoming_transfers) transfer->m_tx.reset();
- 186 for (std::shared_ptr<monero_output> output : tx_wallet->m_outputs) output->m_tx.reset();
- 187 for (std::shared_ptr<monero_output> input : tx_wallet->m_inputs) {
- 188 input->m_key_image.reset();
-
-
-
-
-
-
-
- 201 static void free(std::vector<std::shared_ptr<monero_block>> blocks) {
- 202 for (std::shared_ptr<monero_block>& block : blocks) monero_utils::free(block);
-
-
-
+
+
+
+
+ 134 std::string serialize(
const boost::property_tree::ptree& node);
+ 135 void deserialize(
const std::string& json, boost::property_tree::ptree& root);
+
+
+
+
+
+ 153 std::shared_ptr<monero_block>
cn_block_to_block(
const cryptonote::block& cn_block);
+
+ 162 std::shared_ptr<monero_tx>
cn_tx_to_tx(
const cryptonote::transaction& cn_tx,
bool init_as_tx_wallet =
false);
+
+ 169 static std::string get_pruned_tx_json(cryptonote::transaction &tx)
+
+ 171 std::stringstream ss;
+ 172 json_archive<true> ar(ss);
+ 173 bool r = tx.serialize_base(ar);
+ 174 CHECK_AND_ASSERT_MES(r, std::string(),
"Failed to serialize rct signatures base");
+
+
+
+ 183 static void free(std::shared_ptr<monero_block> block) {
+ 184 for (std::shared_ptr<monero_tx>& tx : block->m_txs) {
+
+
+ 187 if (tx_wallet !=
nullptr) {
+ 188 if (tx_wallet->m_outgoing_transfer != boost::none) tx_wallet->m_outgoing_transfer.get()->m_tx.reset();
+ 189 for (std::shared_ptr<monero_transfer> transfer : tx_wallet->m_incoming_transfers) transfer->m_tx.reset();
+ 190 for (std::shared_ptr<monero_output> output : tx_wallet->m_outputs) output->m_tx.reset();
+ 191 for (std::shared_ptr<monero_output> input : tx_wallet->m_inputs) {
+ 192 input->m_key_image.reset();
+
+
+
+
+
+
+
+ 205 static void free(std::vector<std::shared_ptr<monero_block>> blocks) {
+ 206 for (std::shared_ptr<monero_block>& block : blocks) monero_utils::free(block);
+
+
+
-bool is_valid_language(const std::string &language)
Definition: monero_utils.cpp:233
-std::shared_ptr< monero_tx > cn_tx_to_tx(const cryptonote::transaction &cn_tx, bool init_as_tx_wallet=false)
Definition: monero_utils.cpp:262
+bool is_valid_language(const std::string &language)
Definition: monero_utils.cpp:267
+std::shared_ptr< monero_tx > cn_tx_to_tx(const cryptonote::transaction &cn_tx, bool init_as_tx_wallet=false)
Definition: monero_utils.cpp:296
Definition: monero_wallet_model.h:244
monero_network_type
Definition: monero_daemon_model.h:90
Definition: monero_utils.h:67
-void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &root, rapidjson::Value &field)
Definition: monero_utils.h:95
-std::shared_ptr< monero_block > cn_block_to_block(const cryptonote::block &cn_block)
Definition: monero_utils.cpp:246
+void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &root, rapidjson::Value &field)
Definition: monero_utils.h:99
+std::shared_ptr< monero_block > cn_block_to_block(const cryptonote::block &cn_block)
Definition: monero_utils.cpp:280