]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht/interfaces.py
Move the normalization of key lengths from the HashObject to the DHT.
[quix0rs-apt-p2p.git] / apt_dht / interfaces.py
index 446cd02f99cc6bb05977d26735537759f81531a3..8cb2e69c95e2f421593c452f32d59ccec8b18d66 100644 (file)
@@ -32,10 +32,15 @@ class IDHT(Interface):
         
     def getValue(self, key):
         """Get a value from the DHT for the specified key.
+        
+        The length of the key may be adjusted for use with the DHT.
 
         @rtype: C{Deferred}
         @return: a deferred that will fire with the stored values
         """
         
     def storeValue(self, key, value):
-        """Store a value in the DHT for the specified key."""
+        """Store a value in the DHT for the specified key.
+
+        The length of the key may be adjusted for use with the DHT.
+        """