How to use the hippiehug.Utils.binary_hash function in hippiehug

To help you get started, we’ve selected a few hippiehug examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gdanezis / rousseau-chain / hippiehug-package / hippiehug / Chain.py View on Github external
def hash(self):
        """Return the head of the block."""
        return binary_hash(packb(
                ("S", self.index, self.fingers, self.items, self.aux)))
github gdanezis / rousseau-chain / hippiehug-package / hippiehug / Chain.py View on Github external
def __init__(self, item):
        self.item = item
        """ The item stored in the Leaf. """

        self.hid = binary_hash(packb(("D", self.item)))

hippiehug

A Merkle Tree implementation with a flexible storage backend.

BSD-2-Clause
Latest version published 6 years ago

Package Health Score

36 / 100
Full package analysis