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
This may be a stupid question. Need some help though I have written simple code using "merkletools" as below
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