Tierion / pymerkletools

Python tools for creating Merkle trees, generating Merkle proofs, and verification of Merkle proofs
MIT License
166 stars 53 forks source link

Traceback Error #12

Closed Muhzn closed 6 years ago

Muhzn commented 6 years ago

This may be a stupid question. Need some help though I have written simple code using "merkletools" as below

import merkletools
mt = MerkleTools(hash_type="sha256") 
for i in range (6):
    hex_data = raw_input("Enter the hash")
    mt.add_leaf(hex_data)
leaf_count =  mt.get_leaf_count()

I have installed the merkletools library using pip install merkletools but still, I am getting an error

Traceback (most recent call last): File "merkle_test.py", line 3, in mt = MerkleTools(hash_type="sha256") NameError: name 'MerkleTools' is not defined