MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / calculateInventoryHash

Function calculateInventoryHash

src/addresses.py:116–121  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

114
115
116def calculateInventoryHash(data):
117 sha = hashlib.new('sha512')
118 sha2 = hashlib.new('sha512')
119 sha.update(data)
120 sha2.update(sha.digest())
121 return sha2.digest()[0:32]
122
123def encodeAddress(version,stream,ripe):
124 if version >= 2 and version < 4:

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected