Skip to content

Instantly share code, notes, and snippets.

View vishwanath79's full-sized avatar

Vishwanath Subramanian vishwanath79

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vishwanath79
vishwanath79 / merkle_sample.py
Last active July 4, 2021 16:48
Merkle Tree Example
from csv import reader
from hashlib import sha512
import sys
# Simple merkle tree example
# Invoke the script by calling "python merkle_sample.py "file1.csv" "file2.csv" to compare two merkle trees
class Merkle:
def __init__(self, file):
self.file = file