blob: 3ca4be3bfdb5c9267511c36768d9d1c0f2b86708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "Hash.hpp"
#include <memory>
namespace odhtdb
{
class DatabaseNode
{
public:
DatabaseNode(const std::shared_ptr<char*> &_encryptionKey, const std::shared_ptr<Hash> &_nodeHash) :
encryptionKey(_encryptionKey),
nodeHash(_nodeHash)
{
}
const std::shared_ptr<char*> getNodeEncryptionKey() const
{
return encryptionKey;
}
const std::shared_ptr<Hash> getRequestHash() const
{
return nodeHash;
}
private:
std::shared_ptr<char*> encryptionKey;
std::shared_ptr<Hash> nodeHash;
};
}
|