diff options
Diffstat (limited to 'include/DatabaseNode.hpp')
-rw-r--r-- | include/DatabaseNode.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/DatabaseNode.hpp b/include/DatabaseNode.hpp new file mode 100644 index 0000000..3ca4be3 --- /dev/null +++ b/include/DatabaseNode.hpp @@ -0,0 +1,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; + }; +} |