Skip to content

Python implementation of Merkel Hash Tree for CS 4830/6830

Notifications You must be signed in to change notification settings

hatmer/merkle_tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Python Implementation of Merkle Hash Tree

A Merkle Hash Tree is a data structure with built-in verifiability. The data is stored in blocks which form the leaves of the tree. Each data block is hashed, and the level in the tree above it is formed by nodes which store the hash of the sum of the two nodes below it. Read request responses are accompanied by a list of hashes, and a client only needs to know the root hash in order to be able to verify the authenticity of data returned from the server maintaining the tree. Hash trees are used extensively in distributed systems such as cryptocurrencies and P2P file sharing applications.

Architecture

Usage:

python merkleTree.py <number_of_data_blocks> && cat output.log

tested with python2.7 and python3.4

About

Python implementation of Merkel Hash Tree for CS 4830/6830

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages