diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-01-28 07:35:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:12 +0200 |
commit | bd2bd91ac947a7b1f6d097d7efa4b0ab2041d4db (patch) | |
tree | d934d57f39c8ce321688308317476baacd4efd83 /include/Key.hpp | |
parent | 2ca8686eabc3b624c9981509c161b9be6af439cb (diff) |
Add some files...
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 |