diff options
Diffstat (limited to 'include/Key.hpp')
-rw-r--r-- | include/Key.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/Key.hpp b/include/Key.hpp new file mode 100644 index 0000000..e9f0591 --- /dev/null +++ b/include/Key.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <opendht/infohash.h> + +namespace odhtdb +{ + class Key + { + public: + Key(const char *key) : hashedKey(dht::InfoHash::get(key)) {} + + dht::InfoHash hashedKey; + }; +}
\ No newline at end of file |