diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-02-10 03:38:47 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:12 +0200 |
commit | a19e68b9b029d5374604e4b81dcff161d4b465ba (patch) | |
tree | f1401a0278bd82deff117279376beec761e60a55 /include/User.hpp | |
parent | 5c1a20c4dacfe03db90b70c2665e66a76574196c (diff) |
Add private/public key for users
Diffstat (limited to 'include/User.hpp')
-rw-r--r-- | include/User.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/User.hpp b/include/User.hpp index e542434..ab5872a 100644 --- a/include/User.hpp +++ b/include/User.hpp @@ -1,5 +1,6 @@ #pragma once +#include "Signature.hpp" #include <string> #include <stdexcept> @@ -18,7 +19,10 @@ namespace odhtdb class User { public: + virtual ~User(){} + const std::string& getName() const { return name; } + virtual const Signature::PublicKey& getPublicKey() const = 0; protected: User(const std::string &_name) : name(_name) { @@ -26,7 +30,6 @@ namespace odhtdb throw UserNameTooLongException(name); } private: - // TODO: Add public key std::string name; }; -}
\ No newline at end of file +} |