mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-22 09:38:49 +02:00
added SerializableStruct which defines serialize() and toPropertyTree()
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "utils/MoneroUtils.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include "mnemonics/electrum-words.h"
|
||||
#include "mnemonics/english.h"
|
||||
|
||||
using namespace cryptonote;
|
||||
using namespace epee;
|
||||
|
||||
/**
|
||||
* Public interface for libmonero-cpp library.
|
||||
*/
|
||||
namespace monero {
|
||||
|
||||
string SerializableStruct::serialize() {
|
||||
boost::property_tree::ptree node;
|
||||
toPropertyTree(node);
|
||||
return MoneroUtils::serialize(node);
|
||||
}
|
||||
|
||||
// ---------------------------- PRIVATE HELPERS -----------------------------
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user