Wallet encryption

This commit is contained in:
Aditya Kulkarni
2019-10-30 13:54:42 -07:00
parent 48e5846899
commit cfc2f85b08
12 changed files with 437 additions and 30 deletions

View File

@@ -4,6 +4,8 @@
#include "precompiled.h"
#include "camount.h"
using json = nlohmann::json;
struct Config {
QString server;
};
@@ -119,4 +121,10 @@ private:
double zecPrice = 0.0;
};
inline bool isJsonSuccess(const json& res) {
return res.find("result") != res.end() &&
QString::fromStdString(res["result"].get<json::string_t>()) == "success";
}
#endif // SETTINGS_H