mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
23 lines
557 B
C++
23 lines
557 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;
|
|
#if MAX_LOG_SIZE > 0
|
|
Log log;
|
|
#endif
|
|
|
|
User(std::string &&init_pass) noexcept;
|
|
User(uint32_t init_bal, std::string &&init_pass) noexcept;
|
|
User(uint32_t init_bal, uint64_t init_pass) noexcept;
|
|
#if MAX_LOG_SIZE > 0
|
|
User(uint32_t init_bal, uint64_t init_pass, const Json::Value &log_j) noexcept;
|
|
#endif
|
|
|
|
Json::Value Serialize() const; //to be removed later
|
|
};
|