mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 08:12:12 +11:00
19 lines
475 B
C++
19 lines
475 B
C++
#pragma once
|
|
#include <json/json.h> //to be removed later
|
|
#include <string>
|
|
#include <xxhash.h>
|
|
#include "log.h"
|
|
|
|
struct User
|
|
{
|
|
uint32_t balance = 0;
|
|
uint64_t password;
|
|
Log log;
|
|
|
|
User(const std::string &init_pass);
|
|
User(uint32_t init_bal, const std::string &init_pass);
|
|
User(uint32_t init_bal, uint64_t init_pass);
|
|
User(uint32_t init_bal, uint64_t init_pass, const Json::Value &log_j);
|
|
|
|
Json::Value Serialize() const; //to be removed later
|
|
};
|