From be3c931f9b2db357c0b4306ad248c968d90254a3 Mon Sep 17 00:00:00 2001 From: Aleksi Lindeman Date: Sat, 10 Feb 2018 03:38:47 +0100 Subject: Add private/public key for users --- include/User.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/User.hpp') 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 #include @@ -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 +} -- cgit v1.2.3