gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25796 - gnunet-update/src/gnunet_update


From: gnunet
Subject: [GNUnet-SVN] r25796 - gnunet-update/src/gnunet_update
Date: Tue, 15 Jan 2013 14:52:49 +0100

Author: harsha
Date: 2013-01-15 14:52:49 +0100 (Tue, 15 Jan 2013)
New Revision: 25796

Modified:
   gnunet-update/src/gnunet_update/hashtree.py
Log:
- kill unused

Modified: gnunet-update/src/gnunet_update/hashtree.py
===================================================================
--- gnunet-update/src/gnunet_update/hashtree.py 2013-01-15 13:52:38 UTC (rev 
25795)
+++ gnunet-update/src/gnunet_update/hashtree.py 2013-01-15 13:52:49 UTC (rev 
25796)
@@ -138,14 +138,6 @@
             ret += 1
     return ret
 
-def sha512_hash (data):
-    """ Returns the sha512 digest of the given string
-    
-    data: the string whose hash has to be computed
-    """
-    sh = sha512()
-    sh.update (data)
-    return sh.digest()
 
 def compute_rootchk(readin, size):
     """Returns the content hash key after generating the hash tree for the 
given
@@ -209,6 +201,7 @@
             else:
                 current_depth = 0
 
+
 def chkuri_from_path (path):
     """Returns the CHK URI of the file at the given path.
     




reply via email to

[Prev in Thread] Current Thread [Next in Thread]