diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h
index ee26fd2f851bd19ac435c892d22b343ee8facdc5..257536149bc74d471d68c33786cd94993fb0a488 100644
--- a/include/opendht/infohash.h
+++ b/include/opendht/infohash.h
@@ -229,6 +229,11 @@ public:
         return get(data.data(), data.size());
     }
 
+    template <size_t H>
+    static Hash get(const Hash<H>& o) {
+        return get(o.data(), o.size());
+    }
+
     /**
      * Computes the hash from a given data buffer of size data_len.
      */