Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def hash(self):
"""Return the head of the block."""
return binary_hash(packb(
("S", self.index, self.fingers, self.items, self.aux)))
def __init__(self, item):
self.item = item
""" The item stored in the Leaf. """
self.hid = binary_hash(packb(("D", self.item)))
def hid(self):
return binary_hash(self)